Page 1 of 1

Can i use WINAPI to create windows in PureBasic??

Posted: Mon Jun 02, 2003 8:19 pm
by Edwin Knoppert
It seems to GPF when i call a lib from within WM_SIZE e.o.

The windows are created in the lib.
When i make calls to the lib from within WM_SIZE it gpf's.
Do not know why.
The window is created and can be resized, when i add code in the WM_SIZE and terminate window it GPF's
I placed a messagrequester right after my messagepump handler (in dll).
This never shows.

PS;
Is there a way to declare functions in my lib like VB does.
Declare MyFunc Lib "HELLO.DLL"....
Callfunction is not so handy for this.

Re: Can i use WINAPI to create windows in PureBasic??

Posted: Mon Jun 02, 2003 8:23 pm
by tinman
Edwin Knoppert wrote:Is there a way to declare functions in my lib like VB does.
Declare MyFunc Lib "HELLO.DLL"....
Callfunction is not so handy for this.
You might want to try to dreaded DLLImport tool. It makes a small PureLibrary for your DLL allowing you to use the DLL commands just like the existing API ones, e.g. MyFunc_()