FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour 10.7 GetApps.Prg Linking errors
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
10.7 GetApps.Prg Linking errors
Posted: Wed Aug 04, 2010 10:48 AM
I got this error with buildh getapps
Code (fw): Select all Collapse
Compiling...
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
getapps.c:
Warning W8075 getapps.prg 45: Suspicious pointer conversion in function HB_FUN_GETWINDOWMODULEFILENAME
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
* Application successfully built *

With buildx getapps
Code (fw): Select all Collapse
Generating C source output to 'getapps.c'...
Done.
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
getapps.c:
Warning W8075 getapps.prg 45: Suspicious pointer conversion in function HB_FUN_GETWINDOWMODULEFILENAME
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Error: Unresolved external 'GetModuleFileNameExA' referenced from C:\FWH\SAMPLES\GETAPPS.OBJ
* Linking errors *

Using harbour and xharbour downloaded with fwh10.7.
Please help
Regards



G. N. Rao.

Hyderabad, India
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: 10.7 GetApps.Prg Linking errors
Posted: Wed Aug 04, 2010 01:06 PM

Dear Rao,

Please change this line in GetApps.prg:

DWORD processId = 0;

Also, you have to link in samples\buildx.bat:

echo %bcdir%\lib\psdk\psapi.lib + >> b32.bc

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion