Page 1 of 1

FunctionNotFound in DLL Call

Posted: Fri Feb 12, 2016 10:57 am
by Christina
I have been trying to call a function in a DLL that uses Native C++ code, but I keep getting 'FunctionNotFound' as the return value. The code that I have for the "Call DLL" is as follows:

Code: Select all

~InstallAware Clipboard Data~
~Call DLL Function~
~{0FD88D9C-D9B4-400C-A065-5B78EED67672}~
~$TARGETDIR$\ConfigRA\RAWrapper.dll,help,long,dllReturn,$~
~mIDEFunc.dll\mEXEFunc.dll~


The Method called "help" is a dummy method that I made in order to figure out where I am going wrong with the DLL Call, since I couldn't get the actual one that I want to call to return the proper value. I feel that, once I can get InstallAware to find this function, I can get it to see the function that I am actually trying to call.

help()'s code is as followed:

Code: Select all

int _stdcall CRAWrapperApp::help()
{
    int yes= 8888888888888;
    return yes;
}


Please tell me what I'm doing wrong. Thank you.

Re: FunctionNotFound in DLL Call

Posted: Fri Feb 12, 2016 1:50 pm
by FrancescoT
Dear Christina,

your "Help" function looks to be part of a class called "CRAWrapperApp".
Normally, you export not a class but a stand alone function.
https://msdn.microsoft.com/en-us/library/z4zxe9k8.aspx

Hope this helps you.

Regards

Re: FunctionNotFound in DLL Call

Posted: Tue Feb 16, 2016 10:35 am
by Christina
Francesco,

Thank you, that was the issue.

Re: FunctionNotFound in DLL Call

Posted: Tue Feb 16, 2016 1:56 pm
by FrancescoT
:D