ThanhBT Posted September 17, 2011 Share Posted September 17, 2011 (edited) I have custom file Utilities.dll and need to call function GetNumber() in that file. But GetNumber is member of class Utilities and Utilities is member of namespace Utilities. In .Net i using that code Utilities.Utilities number = new Utilities.Utilities(); strNumber = number.GetNumber(strFilePath); I don't know how to call GetNumber() in my custom DLL with autoit Sorry for my English. Thanks a lot. Edited September 17, 2011 by ThanhBT Link to comment Share on other sites More sharing options...
ThanhBT Posted September 18, 2011 Author Share Posted September 18, 2011 Anyone can help me plz? Link to comment Share on other sites More sharing options...
RAMzor Posted October 8, 2011 Share Posted October 8, 2011 Your Utilities.dll written in .NET?I'm not sure but first of all try to register your dll with regasm.exe with /codebase or /tlb optionand then use ObjCreate in AutoIt Eample (NOT TESTED!)$strFilePath = "blah blah blah" $oUtil = ObjCreate("Utilities.Utilities") If not @error then ;Msgbox(0,"ObjCreate Test","Object created successful!") $strNumber = $oUtil.GetNumber($strFilePath) Msgbox(0,"ObjCreate Test",$strNumber) Else Msgbox(16,"ObjCreate Test","Failed to create Object. Error code: " & hex(@error,8)) Endif $oUtil = 0 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now