PocketMatrix forums

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

Installation dir on smartphone?

Pejo Software - Per · 13 Jul 2003, 23:58 UTC
When we have distributed Pocket PC versions of our games we have installed gdXXX.dll into the windows directory (and/or updating the reference counter).
But when I am trying to do the same on Smartphone using %CE2% in the inf file. But my Smartphone seems to have 2 Windows directories. One /IPSM/Windows and one /Windows and %CE2% points to /IPSM/Windows. In order for the game to find the dll it seems that it must be located in /Windows.
So what to do?
I could place the dll in the program directory but if several Gapidraw games are installed that is a waste of precious memory. A second option is to use /Windows instead of %CE2% but that doesn't feel correct either (Can I be sure that it will work on all devices).
so far people writing for the smartphones have always put the gd dll into the game/program directory

the reason for this is that different programs use different versions of the GD library, and so headers etc may be incompatible, so for safety each program references it's own version

I agree it's a waste of file space (and bothers my programming side no end ;) ), but it seems to be the only safe way to install on the smartphones

I certainly wouldn't want to start installing and making other peoples programs stop working
muff: The GapiDraw DLLs are named according to their version (e.g. GD201b.DLL) - and there is only one DLL available for each release. You can safely put the GapiDraw DLL in the Windows folder of the Smartphone.
johan: you're right of course :)

I was forgetting that each dll is named differently :doh!:

thanks for the tip :D
Pejo Software - Per · 15 Jul 2003, 15:59 UTC
My original question isn't anwered though. Maybe someone could tell me if it is safe to use /Windows instead of %CE2% in my installation .inf file.
both locations are probably 'safe' - and both are held on the phone itself not the storage card so there's no issue there

of course, unless you are planning on releasing several games using the exact same version of the GD library, then all that's happening is that you are spreading your files around the phone, rather than keeping the installation in 1 place

certainly at the moment there is no concensus in the Smartphone community over such file locations - maybe this will come as the platform matures - we can only hope ;)