I have an installation package that contains MyLibrary.dll, an MFC DLL. During my installation process, I extract MyLibrary.dll, and its dependencies into the $PLUGINSDIR, and try to execute a function in MyLibrary. When I make the call, I always get "error" returned..
Prior to making this an MFC DLL, everything worked without a hitch. I made another C app which made calls into this DLL just to make sure the functionality was there, and everything worked as expected.
Snippet:
File /oname=$PLUGINSDIR\MyLibrary.DLL "${SERVER_INSTALL_PATH}\work\Utilities\MyLibrary.dll"
File /oname=$PLUGINSDIR\msvcr90.dll "${SERVER_INSTALL_PATH}\work\Application\msvcr90.dll"
File /oname=$PLUGINSDIR\mfc90.dll "${SERVER_INSTALL_PATH}\work\Application\mfc90.dll"
File /oname=$PLUGINSDIR\microsoft.vc90.crt.manifest "${SERVER_INSTALL_PATH}\work\Application "\microsoft.vc90.crt.manifest"
File /oname=$PLUGINSDIR\microsoft.vc90.mfc.manifest "${SERVER_INSTALL_PATH}\work\Application\microsoft.vc90.mfc.manifest"
System::Call "$PLUGINSDIR\MyLibrary::SAYHELLO() i .r0";
${If} $0 == "error"
MessageBox MB_OK|MB_ICONSTOP "Error saying HELLO"
Quit
${endif}
I've tried the above, and also threw in a "SetOutPath $PLUGINSDIR" prior to SAYHELLO thinking it might be a path issue (not able to find MFC .dlls), and still no go.
Am I overlooking something? Any suggestions on what to try next?
Cheers.
Mike