FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FWH 10.1 - DLL32 Function
Posts: 204
Joined: Mon Oct 17, 2005 09:09 PM

Re: FWH 10.1 - DLL32 Function

Posted: Fri Feb 19, 2010 09:56 PM

Problem Solved!! :D

Thank you Vilian.

The problem is a "user error."

Image2pdf supplies 2 dll's - one uses "STDCALL" convention and one does not.

My new version of xHarbour ( 1.2 ) must have the STDCALL version and I was calling the "other" DLL file by mistake.

Following advice of Vilian, I call the "Image2PDF StdCall.dll" and everything seems to work fine now, as it did before.

There is no problem with FWH libraries, as long as the FWH libraries are listed before the xharbour libraries in the link script. I looked at the linker map and I believe that the FWH version of CALLDLL() is being used - not xHarbour CALLDLL()

So, Antonio, I apologize for wasting your valuable time, and the time of others who replied and monitored this topic.

Don Lowenstein
www.laapc.com
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM

Re: FWH 10.1 - DLL32 Function

Posted: Sat Feb 20, 2010 03:18 AM

Cool

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: FWH 10.1 - DLL32 Function

Posted: Sat Feb 20, 2010 08:53 AM

Don,

glad to know it is solved :-)

Vilian,

many thanks for your help :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 208
Joined: Wed Dec 03, 2008 04:48 PM

Re: FWH 10.1 - DLL32 Function

Posted: Mon Jun 07, 2010 08:25 PM
don lowenstein wrote:Problem Solved!! :-)

Thank you Vilian.

The problem is a "user error."

Image2pdf supplies 2 dll's - one uses "STDCALL" convention and one does not.

My new version of xHarbour ( 1.2 ) must have the STDCALL version and I was calling the "other" DLL file by mistake.

Following advice of Vilian, I call the "Image2PDF StdCall.dll" and everything seems to work fine now, as it did before.

There is no problem with FWH libraries, as long as the FWH libraries are listed before the xharbour libraries in the link script. I looked at the linker map and I believe that the FWH version of CALLDLL() is being used - not xHarbour CALLDLL()

So, Antonio, I apologize for wasting your valuable time, and the time of others who replied and monitored this topic.

How can I make the FWH libraries linked before xHarbour libraries???
I Am using xBuildW.exe and cannotcontrol this order??
Posts: 204
Joined: Mon Oct 17, 2005 09:09 PM

Re: FWH 10.1 - DLL32 Function

Posted: Wed Jun 16, 2010 06:51 PM

Normally, if using a .lnk file to define the libraries to "pull in", the references are resolved in the order of the libraries listed.

ie - If FWH libraries listed before the xHarbour libraries, duplicate references will be pulled from FWH libraries.

Don Lowenstein
www.laapc.com

Continue the discussion