PocketMatrix forums

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

GAPI missing?

Does anyone know if a more useful message can be given to the user, other than "program" or ones of it's components is missing?

Is this the OS returning this? i.e does the OS check dependencies before executing, or is this a bail out message after it trys to call the gx.dll?

It just that I've found a few devices that dont "like" the std gx.dll when supplied with my game.... causing crashes etc. but by not installing it, and the OS using the default factory one works.... (no idea why), anyhow this means that older devices come up with the above error, and I wanted a better way of informing the user, whats going on, i.e "please go to... and install GAPI"

Again, this could be a INF installer issue, with only a gx.dll copied to 2000 devices, as most 2002 devices have it?

-B
If you use LoadLibrary and GetProcAddress, you can load DLLs at runtime and throw an error message if LoadLibrary fails. It's messy but allows a program to run if DLLs aren't present.

This is from Win32 programming, I'd guess WinCE would be the same?
Take a look at the Pocket Quake source. I dynamically load gx.dll and get the pointers for the needed routines. Obviously the purpose of going to the extra trouble is to provide a concise error message to the user.

Dan East
Ok, there is an easier way, in your Inf file copy the file gx.dll to the \windows\ directory etc, but do it like this:

gx.dll,,,0x00000010

this will only copy it if it does not exist.....


-Brendan
That doesn't have anything to do with the application loading the DLL. You will still get the "This app won't run. We know why but we won't tell you." message if the DLL can't be found.

Dan East
True, but there are many ways to fix a problem, and insuring the dll is on the device solves the issue in 99.9% of cases, so thats good enough for me.

-B :-)
nwcoder · 20 Feb 2003, 23:03 UTC — RTFM
:!:

You did the right thing, cuz according to "Designed for Windows for Pocket PC" logo guidlines:

...Additionally, if the application installs GX.dll (GAPI), it must install that DLL in the application directory, not the Windows directory. Apps that use GAPI, must install this DLL.