Freeimage (Antonio)

Freeimage (Antonio)

Postby byte-one » Fri Oct 01, 2010 11:25 am

Antonio, whe i use TIMAGE the freeimage.dll is required from FWH from start on. When this dll is not present, a errorbox is shown and the programm hangs in a loop!
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: Freeimage (Antonio)

Postby Willi Quintana » Fri Oct 01, 2010 1:59 pm

Hi, put these lines to start your application:

Code: Select all  Expand view

Function Main()
local ......
local ......
If !FILE("freeimage.dll")
  MsgStop("FREEIMAGE.LIB NOT PRESENT","Error")
  Return(NIl)
EndIf
....
...
..
.
 

Regards
User avatar
Willi Quintana
 
Posts: 1019
Joined: Sun Oct 09, 2005 10:41 pm
Location: Cusco - Perú

Re: Freeimage (Antonio)

Postby byte-one » Fri Oct 01, 2010 2:51 pm

Willi, i use this code! But FWH try to load the dll on beginn of the program when in the program TIMAGE is used!
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: Freeimage (Antonio)

Postby kok joek hoa » Sat Oct 02, 2010 4:53 am

Dear byte-one,

please try :

Code: Select all  Expand view

function main()

 local ....
 
 
return nil
//-------------------------

ini procedure begining()

    If !FILE("freeimage.dll")
        MsgStop("FREEIMAGE.LIB NOT PRESENT","Error")
        quit
    EndIf

return
 



Regards,

Kok
kok joek hoa
 
Posts: 117
Joined: Tue Jan 03, 2006 6:18 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 90 guests