Forum Discussion
neha_sharma
12 years agoContributor
Hi,
I have used another way to access DLL now.
Treat DLL as an ole object and use it in scripts.
But we have to register the DLL before using in HKEY_CURRENT_ROOT.
C:\windows\Microsoft.NET\Framework\v4.0.30319\regasm.exe "C:\TestComplete\Utilities\ClassLibrary1.dll" /tlb
Set Rep = sys.oleObject("ClassLibrary1.MyFunctions")
num = Rep.AddMYVAlues(2,2)
Thanks,
Neha
I have used another way to access DLL now.
Treat DLL as an ole object and use it in scripts.
But we have to register the DLL before using in HKEY_CURRENT_ROOT.
C:\windows\Microsoft.NET\Framework\v4.0.30319\regasm.exe "C:\TestComplete\Utilities\ClassLibrary1.dll" /tlb
Set Rep = sys.oleObject("ClassLibrary1.MyFunctions")
num = Rep.AddMYVAlues(2,2)
Thanks,
Neha