Hi all,
I was wondering if it is possible to call a dll function which will allow me to read information stored on Hasp security keys/dongles? For example, how to get the serial number from the key.
Thanks in advance,
Sinead
Aladdin Hasp Security Keys
Hi,
I have the following dll functions which I need to call, they are declared as follows:
extern "C" __declspec(dllexport) int CheckRegCode(int Version, char *UserName,char *RegCode,int& Result,int &Status);
extern "C" __declspec(dllexport) int IsDongleBitSet(int Bit,int& Result,int& Status);
extern "C" __declspec(dllexport) int GetDongleStatus(int& Status);
However when I try to reference these in a simple InstallAware project I am getting FUNCTIONNOTFOUND.
I use the following code in my InstallAware project:
Set Variable ReturnCode to Test
Set Variable Result to
Call DLL Function DmmDon.dll->GetDongleStatus (get result into variable ReturnCode)
MessageBox: $ReturnCode$
I read a post on this forum which recommended putting the dll into the support files section, which I have also tried but to no avail. (Note: when I put the dll into the support files section I then use
Call DLL Function $SUPPORTDIR$\\DmmDon.dll->GetDongleStatus (get result into variable ReturnCode)
Any ideas on why this isn't working?
Thanks,
Sinead
I have the following dll functions which I need to call, they are declared as follows:
extern "C" __declspec(dllexport) int CheckRegCode(int Version, char *UserName,char *RegCode,int& Result,int &Status);
extern "C" __declspec(dllexport) int IsDongleBitSet(int Bit,int& Result,int& Status);
extern "C" __declspec(dllexport) int GetDongleStatus(int& Status);
However when I try to reference these in a simple InstallAware project I am getting FUNCTIONNOTFOUND.
I use the following code in my InstallAware project:
Set Variable ReturnCode to Test
Set Variable Result to
Call DLL Function DmmDon.dll->GetDongleStatus (get result into variable ReturnCode)
MessageBox: $ReturnCode$
I read a post on this forum which recommended putting the dll into the support files section, which I have also tried but to no avail. (Note: when I put the dll into the support files section I then use
Call DLL Function $SUPPORTDIR$\\DmmDon.dll->GetDongleStatus (get result into variable ReturnCode)
Any ideas on why this isn't working?
Thanks,
Sinead
-
- Site Admin
- Posts: 364
- Joined: Mon Jul 30, 2007 11:51 am
- Location: USA
- Contact:
please post the Call Dll Function line just by copying it, not as text so we can see if you are calling it right
Alejandro Ronquillo
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
Who is online
Users browsing this forum: No registered users and 103 guests