Import:EndImport

Everything else that doesn't fall into one of the other PB categories.
mocitymm
User
User
Posts: 37
Joined: Wed Feb 08, 2017 6:56 pm

Import:EndImport

Post 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?
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Import:EndImport

Post 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
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Post Reply