Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

UseDLL Problem


1 reply to this topic

shitij

shitij
  • Members
  • 5 posts

Posted 30 July 2002 - 11:50

Hi there,
I have been using dll made in C++.
nResultStr = UseDLL( SUPPORTDIR ^ "iisadmin.dll");
if (nResultStr = 0) then
   MessageBox ("Yes,i make it.", INFORMATION);
else
   MessageBox ("Oh, NO !", INFORMATION);
   abort;
endif;
I have loaded the dll in language Independent/Operating System Independent, but it always displays message "Oh, NO !", which means the DLL is not loaded. I am unable to understand what is the exact problem in loading DLL.

Esquimaux

Esquimaux
  • Members
  • 17 posts

Posted 30 July 2002 - 14:21

Here is a possible cause. I copied it from the InstallShield documentation on UseDLL...

"Another cause of failure associated with using DLLs is related to DLL dependencies: DLLs accessed by the DLL that you load. If the DLLs that your DLL accesses are not loaded or found, your DLL call may fail. If this occurs, make sure that the other DLLs are on the system and that they are accessible."

So make sure that iisadmin.dll does not used other DLLs. If it does, you will need to load those also.

I hope this helps.

The Eskimo
The Eskimo

"Evil shall come upon thee, which thou shalt not know how to deprecate"
- Robert Lowth, eighteenth-century Bishop of Winchester