PocketMatrix forums

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

Loading gx.dll Dynamically?

Is there anywhere that I can find a programming example or tutorial for loading gx.dll dynamically?

The reason I'm asking is that I like programming directly on the PocketPC while travelling and gx.lib is compiled for MS Embedded Visual C++, so I can't use it for programming directly on the Pocket PC.

I tried google and searching here, but couldn't find anything.
Take a look at the PocketQuake sources.
It shows how to load and call gx.dll dynamically.
Thanks.

I believe it's sys_win.c that is the file that I'm looking for?
Thanks, it worked like a charm. It was a lot easier than I thought it would be.

Anyway, another question. The code that I'm using has statements using GXSuspend and GXResume which aren't in the PocketQuake code, so I was wondering what the ProcAddresses are for each one?

Also is there a way that I can find out what the ProcAddresses are in any other libraries that I might want to load dynamically in the future?

Thanks again for your time.
Just apply the same method to those functions. You can use Dependency Walker (comes with VC++) to obtain information about routines in a DLL. These aren't the addresses of the processes, but are the decorated names of the functions. I don't know why MS made gx.dll / gx.h so C++ centric.

?GXBeginDraw@@YAPAXXZ
?GXCloseDisplay@@YAHXZ
?GXCloseInput@@YAHXZ
?GXEndDraw@@YAHXZ
?GXGetDefaultKeys@@YA?AUGXKeyList@@H@Z
?GXGetDisplayProperties@@YA?AUGXDisplayProperties@@XZ
?GXIsDisplayDRAMBuffer@@YAHXZ
?GXOpenDisplay@@YAHPAUHWND__@@K@Z
?GXOpenInput@@YAHXZ
?GXResume@@YAHXZ
?GXSetViewport@@YAHKKKK@Z
?GXSuspend@@YAHXZ

Dan East