thilakasiri1978
11 years agoOccasional Contributor
DLL Unspecified error
I need to call some methods from a DLL provided by Dev team. I followed the instructions available in the TC training materials. But I’m getting the ‘Unspecified error’ message when I run the code.
Code
‘’’’’’’’’’’’’’’’’’’’’’’’’’
Set MyEnvironment = DLL.DefineEnvironment(True)
Set MyStr = MyEnvironment.New("LPSTR", 128)
b="1234567890123456"
Set MyStr = DLL.New("LPSTR", 256)
MyStr.Text = b
Set Def_DLL = DLL.DefineDLL("AesEncryption.dll")
Call Def_DLL.DefineProc ("CryptEncrypt", MyStr, MyStr)
‘Failing from below step
Set Lib = DLL.Load("C:\QA Automation\FeeAlert\Automation\FunctionLibrary\AesEncryption.DLL")
Results = Lib.CryptDecrypt(MyStr)
'''''''''''''''''''''''''''''''''''''''
Appreciate your input.