Problems with Call DLL function
Posted: Wed May 07, 2008 9:52 am
Hi,
I'm having problems calling a function from a dll. I wrote a dll that brings up a dialog box that allows the user to select which Palm user they would like to install my Palm extensions to. It works perfectly when I run it from rundll32.exe (It's how i test my functions that are in dlls). When I put it into an installer and run it fails to load with a return value of DLLLOADFAILED. I tracked it down to the fact that my dll can not load functions from another dll. Both dlls are in the $SUPPORTDIR$.
I'm guessing my problem is that the support dir is not the current working directory when I'm calling my dll so it can't find the other dll (Instaide.dll for any palm developers out there.)
Any ideas how I can fix it?
I'm having problems calling a function from a dll. I wrote a dll that brings up a dialog box that allows the user to select which Palm user they would like to install my Palm extensions to. It works perfectly when I run it from rundll32.exe (It's how i test my functions that are in dlls). When I put it into an installer and run it fails to load with a return value of DLLLOADFAILED. I tracked it down to the fact that my dll can not load functions from another dll. Both dlls are in the $SUPPORTDIR$.
I'm guessing my problem is that the support dir is not the current working directory when I'm calling my dll so it can't find the other dll (Instaide.dll for any palm developers out there.)
Any ideas how I can fix it?