Message pump

Just starting out? Need help? Post your questions and find answers here.
Patrice Terrier
User
User
Posts: 21
Joined: Sun Aug 10, 2003 11:45 am
Location: France
Contact:

Message pump

Post by Patrice Terrier »

Is it possible to use directly the core Windows API with PB
CreateWindowEx + GetMessage + WindowProc callback

it seems that the C/C++ is supported as long as using specific prefix letters.
Does there is an example of that specific use somewhere around?

And what is the LoadLibrary counterpart?
Patrice Terrier
objreader@gmail.com
http://www.objreader.com
Addon: WinLIFT (Skin Engine), GDImage (Graphic library), ObjReader (3D engine)
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Message pump

Post by Fred »

Sure, you can code in full API in PB, almost all Win32 structures, constants and functions are directly available. You just need to put an underscore at the end of the API function

Here is an example: viewtopic.php?t=80610&hilit=Getmessage_
Axolotl
Addict
Addict
Posts: 802
Joined: Wed Dec 31, 2008 3:36 pm

Re: Message pump

Post by Axolotl »

yes you can....
If it is necessary
Use the search to find more examples here in the forum....

for starters you can look at this...
viewtopic.php?p=508303#p508303
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
Patrice Terrier
User
User
Posts: 21
Joined: Sun Aug 10, 2003 11:45 am
Location: France
Contact:

Re: Message pump

Post by Patrice Terrier »

Ok, thank you!
Patrice Terrier
objreader@gmail.com
http://www.objreader.com
Addon: WinLIFT (Skin Engine), GDImage (Graphic library), ObjReader (3D engine)
Post Reply