Page 1 of 1

Import:EndImport

Posted: Mon Jul 17, 2017 11:23 am
by mocitymm
Recently tried the example in the HTML Help, for 'user32.lib'. It's throwing a POLINK error: Unresolved external symbol '_MessageBoxA@16'.

I am running Windows 7 (x64) so, I used 'ImportC'. Still threw the error. I commented out the 'MsgBox' example, the 'MessageBoxA' does work to an extent... Only returns the 'W' for title on the dialog and 'H' in the message.

Is this normal behavior?

Re: Import:EndImport

Posted: Mon Jul 17, 2017 11:50 am
by ts-soft
For windows x64 you can use import or importc!

The MessageBoxA is the ASCII Version. If you are using Unicode (PB5.60 for example) you have to use the UNICODE Version:
MessageBoxW