Call DLL Function
Posted: Tue Sep 27, 2016 2:02 am
Hi Francesco Toscano,
Your answers to other questions helped me to get started, Appreciate.
I'm calling two Dll functions (VC++), one works and other one fails. see if you can help me.
CASE I : This one works.
Function prototype :
extern "C" __declspec(dllexport) WORD UpdateLicenseKey1()
{
return 22;
}
And this is how I'm calling from InstallAware -
~InstallAware Clipboard Data~
~Call DLL Function~
~{784B4EB7-116D-4EA4-99BA-B80D1BB4A619}~
~F:\VC2010\InstallerTest\Debug\InstallerTest.dll,UpdateLicenseKey1,word,DWORDVALUE,$~
~mIDEFunc.dll\mEXEFunc.dll~
Result : No issue, works as expected
===========================================End of CASE I ==================
CASE II : This one doesn't work - Getting EXTERNALEXCEPTION
Function prototype :
extern "C" __declspec(dllexport) BOOL UpdateLicenseKey(char* key)
{
return TRUE;
}
And this is how I'm calling from InstallAware -
~InstallAware Clipboard Data~
~Call DLL Function~
~{DC68A8D9-1EA2-4C49-9501-151909EB3DBF}~
~F:\VC2010\InstallerTest\Debug\InstallerTest.dll,UpdateLicenseKey,bool,LicenseKeyStatus,"pointer to string",$NewKeyValue$,$~
~mIDEFunc.dll\mEXEFunc.dll~
Result - EXTERNALEXCEPTION
========== End of CASE II =====================
Your answers to other questions helped me to get started, Appreciate.
I'm calling two Dll functions (VC++), one works and other one fails. see if you can help me.
CASE I : This one works.
Function prototype :
extern "C" __declspec(dllexport) WORD UpdateLicenseKey1()
{
return 22;
}
And this is how I'm calling from InstallAware -
~InstallAware Clipboard Data~
~Call DLL Function~
~{784B4EB7-116D-4EA4-99BA-B80D1BB4A619}~
~F:\VC2010\InstallerTest\Debug\InstallerTest.dll,UpdateLicenseKey1,word,DWORDVALUE,$~
~mIDEFunc.dll\mEXEFunc.dll~
Result : No issue, works as expected
===========================================End of CASE I ==================
CASE II : This one doesn't work - Getting EXTERNALEXCEPTION
Function prototype :
extern "C" __declspec(dllexport) BOOL UpdateLicenseKey(char* key)
{
return TRUE;
}
And this is how I'm calling from InstallAware -
~InstallAware Clipboard Data~
~Call DLL Function~
~{DC68A8D9-1EA2-4C49-9501-151909EB3DBF}~
~F:\VC2010\InstallerTest\Debug\InstallerTest.dll,UpdateLicenseKey,bool,LicenseKeyStatus,"pointer to string",$NewKeyValue$,$~
~mIDEFunc.dll\mEXEFunc.dll~
Result - EXTERNALEXCEPTION
========== End of CASE II =====================