-
UseDll with C++ run-time DLLs
For checking the license key, I need to call a function from a product DLL which needs the Visual C++ Run-time MSVCP60.DLL, which in turn needs the C Run-time MSVCRT.DLL.
All those DLLs will be present in the correct versions after the installation; however, in order to use them during the setup, I add them to the "Setup files" list in the IDE and call UseDll from Installscript in what I think the correct order:
UseDll(SUPPORTDIR^"msvcrt.dll");
UseDll(SUPPORTDIR^"msvcp60.dll");
UseDll(SUPPORTDIR^"Mydll.dll");
However, Setup complains that msvcp60.dll could not be loaded and exits then.
All those DLLs are present in the SUPPORTDIR; the Dependency Walker does not show any missing functions.
Thanks for any ideas
Matthias
-
Perhaps try calling ChangeDirectory(SUPPORTDIR) before calling UseDLL?
-
Thanks for your input, Robert.
However, it doesn't work. I have added a ChangeDirectory(SUPPORTDIR) before the LoadDll calls, but LoadDll(SUPPORTDIR^"msvcp60.dll") still returns a -1.
Regards,
Matthias
-
Does Is(FILE_EXISTS, SUPPORTDIR ^ "lib.dll") return true?
-
Is(FILE_EXISTS,SUPPORTDIR^"lib.dll") returns true for all DLLs I try to use.
However, UseDll only works for msvcrt.dll and reutrns -1 for msvcp60.dll.
Regards
Matthias
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules