Page 3 of 3

Re: FWH 10.1 - DLL32 Function

Posted: Fri Feb 19, 2010 9:56 pm
by don lowenstein
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.

Re: FWH 10.1 - DLL32 Function

Posted: Sat Feb 20, 2010 3:18 am
by vilian
Cool

Re: FWH 10.1 - DLL32 Function

Posted: Sat Feb 20, 2010 8:53 am
by Antonio Linares
Don,

glad to know it is solved :-)

Vilian,

many thanks for your help :-)

Re: FWH 10.1 - DLL32 Function

Posted: Mon Jun 07, 2010 8:25 pm
by codemaker
don lowenstein wrote: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.
How can I make the FWH libraries linked before xHarbour libraries???
I Am using xBuildW.exe and cannotcontrol this order??

Re: FWH 10.1 - DLL32 Function

Posted: Wed Jun 16, 2010 6:51 pm
by don lowenstein
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.