FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour gdi+
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
gdi+
Posted: Tue Sep 09, 2008 06:18 PM

can we cal gdi+ in fwh ?
and How ?

gdi+ have many important functions

Best Regards, Saludos



Falconi Silvio
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
gdi+
Posted: Wed Sep 10, 2008 09:23 AM
Silvio,

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

test.prg
#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
Posts: 838
Joined: Wed Aug 22, 2007 10:09 AM
gdi+
Posted: Wed Sep 10, 2008 03:07 PM

Time to use BCC 5.8xx!!

Saludos / Regards,



FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
gdi+
Posted: Wed Sep 10, 2008 03:09 PM

Moises,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
gdi+
Posted: Wed Sep 10, 2008 03:34 PM
Time to use BCC 5.8xx


Where i can get this newer compiler?
Regards,
Günther
---------------------------------
office@byte-one.com

Continue the discussion