I am using a wrapper dll for a usb device. In the library which is coming with the device there is the possibility to launch a thread which is sending messages (events) to a window.
This function takes HWND and a msgid (message id int) as parameters, so I forward the blitzmax window HWND (GadgetQuery(QUERY_HWND)) and a number like 25487 (I guess it is not used by windows api standard messages...).
I have no problem launching this thread but only getting the message in the event queue of blitzmax. Anybody did that?