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.
Can i use WINAPI to create windows in PureBasic??
-
Edwin Knoppert
- Addict

- Posts: 1073
- Joined: Fri Apr 25, 2003 11:13 pm
- Location: Netherlands
- Contact:
- tinman
- PureBasic Expert

- Posts: 1102
- Joined: Sat Apr 26, 2003 4:56 pm
- Location: Level 5 of Robot Hell
- Contact:
Re: Can i use WINAPI to create windows in PureBasic??
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_()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.
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
(WinXPhSP3 PB5.20b14)