PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Thread help

I'm still working on my replacement GAPI for the monochrome iPAQs, and I've got it functioning properly for a lot of stuff, including Hyperspace Delivery Boy, PocketGenesis, and some others. Those games that do not call GXEndDraw, however, are still giving me fits. To deal with this, I'd like to be able to start a thread in GXOpenDisplay that will run in the background and update the screen every 10 milliseconds or so. Unfortunately, I've only done Win32 programming through VB5, so I'm not very familiar with threads and their implementation in C++. Worse, none of the texts I've found on the net are worth a damn when it comes to something basic like this. Can anyone help me find some simple code that will let me launch one function as a loop and then terminate it at GXCloseDisplay?

Thanks,

Thomas Wilburn
Don't use a thread. Use a Windows timer and subclass the app's window.
I don't think that applies. This isn't an application, it's a replacement .dll. Would a helper app be a better way to accomplish this, do you think?
Sorry if I misunderstood, but I thought you got the window handle of the app that is using your DLL when the app calls GXOpenDisplay?
Hmmm... you're right, I should. Thanks a bunch, I'll look into that.