Menu

Palm Library now dynamically loads the DLLs

The conduit library has just had a major enhancement - it now no longer needs all the Palm DLLs to be on the search path! It now dynamically loads the DLLs, using the following Palm approved method of locating the DLLs:
1) It looks for a userdata.dll file in the same directory as your conduit, and if found, calls it's UmGetRootDirectory to get the palm directory
2) If not found, it uses the Palm Desktop registry entry to locate the palm directory

This means that people should now be able to immediately compile and install the library on development systems, and in conduit releases you can install the conduit wherever you want (although ideally you should also install a copy of userdata.dll in the same directory as the conduit).

Whilst this in itself is worthy of a version 15 release, I'm temporarily keeping it only as a CSV update - I'm hoping that other people will be able to test the new code as well, and make sure it works smoothly before an official new release.

PS: I'd like to personally thank Frank Schmidberger for emailling me a copy of a HeadConv converted pfgUserData.pas file - it showed me how to convert the library from statically loading the DLLs to dynamically loading them.

Posted by Paul Gilbert 2003-07-11

Log in to post a comment.