gdi+

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

gdi+

Post by Silvio »

can we cal gdi+ in fwh ?
and How ?

gdi+ have many important functions
Best Regards, Saludos

Falconi Silvio
User avatar
Antonio Linares
Site Admin
Posts: 42519
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 75 times
Contact:

Post by Antonio Linares »

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

#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
MOISES
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Post by MOISES »

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

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
User avatar
Antonio Linares
Site Admin
Posts: 42519
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 75 times
Contact:

Post by Antonio Linares »

Moises,

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

Antonio Linares
www.fivetechsoft.com
User avatar
byte-one
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria
Contact:

Post by byte-one »

Time to use BCC 5.8xx


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