FunctionNotFound in DLL Call

Got a problem you cannot solve? Try here.
Post Reply
Christina
Posts: 5
Joined: Fri Feb 12, 2016 10:36 am

FunctionNotFound in DLL Call

Post 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.
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: FunctionNotFound in DLL Call

Post 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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Christina
Posts: 5
Joined: Fri Feb 12, 2016 10:36 am

Re: FunctionNotFound in DLL Call

Post by Christina »

Francesco,

Thank you, that was the issue.
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: FunctionNotFound in DLL Call

Post by FrancescoT »

:D
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply