gdi+

gdi+

Postby Silvio » Tue Sep 09, 2008 6:18 pm

can we cal gdi+ in fwh ?
and How ?

gdi+ have many important functions
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby Antonio Linares » Wed Sep 10, 2008 9:23 am

Silvio,

This is a first test, but you have to use bcc582 or higher. It will not work with bcc55.

test.prg
Code: Select all  Expand view  RUN
#include "FiveWin.ch"

function Main()

   GDIPLUSSTARTUP()

   GDIPLUSSHUTDOWN()

   MsgInfo( "ok" )

return nil

#pragma BEGINDUMP

#include <hbapi.h>
#include <windows.h>
#include <Gdiplus.h>

GdiplusStartupInput gdiplusStartupInput;
ULONG_PTR           gdiplusToken;

HB_FUNC( GDIPLUSSTARTUP )
{
   // Initialize GDI+
   GdiplusStartup( &gdiplusToken, &gdiplusStartupInput, NULL );
}

HB_FUNC( GDIPLUSSHUTDOWN )
{
   // Shutdown using gdiplus
   GdiplusShutdown( gdiplusToken );
}

#pragma ENDDUMP
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42111
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby MOISES » Wed Sep 10, 2008 3:07 pm

Time to use BCC 5.8xx!!
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Postby Antonio Linares » Wed Sep 10, 2008 3:09 pm

Moises,

Just for those that need to use GDI+ :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42111
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby byte-one » Wed Sep 10, 2008 3:34 pm

Time to use BCC 5.8xx


Where i can get this newer compiler?
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], Marc Venken and 96 guests