View Full Version : Failed to find dl function

10-22-2003, 09:49 AM

I have a regular dll named "MyDLL.dll" and want to call on of its methods in my installation , but when I call the method this error message is displayed:
"Failed to find dll function: DLLNAME.FUNCTIONNAME"
(insted of upper case words there is reall dll name and real called method) and then installation wizard is terminated.
I now that the problem is not relatted to loading dll.USEDLL returns 0 when iis called.
I exportes my function with this syntax:

__declspec(dllexport) void myMethod(char* cParam)

in the c++ code; and imported MyMethod with this syntax in Installshield script:

prototype MyDLL.MyMethod(BYREF STRING);

and used in a user define method with this syntax:
STRING szInput = "input";

MyDLL.MyMethod(szInput );

Can you help me to solve my problem.

Thanks in advance,
Minoo Shams

10-23-2003, 08:31 AM
Try creating a .def file for your project. You can also trying running "dumpbin /exports <filename>" to verify that the function name is being exported.


10-24-2003, 11:35 AM
Once case where I've seen this message is when the product code (maybe upgrade code too) is changed but the package code was not changed (it should have been since now things are not in sync). When the installer runs on a system having the package installed, it generates that error.