Page 1 of 1

Message pump

Posted: Sat Nov 11, 2023 4:58 pm
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?

Re: Message pump

Posted: Sat Nov 11, 2023 5:16 pm
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_

Re: Message pump

Posted: Sat Nov 11, 2023 5:19 pm
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

Re: Message pump

Posted: Sun Nov 12, 2023 9:39 am
by Patrice Terrier
Ok, thank you!