ThanhBT 0 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 Share this post Link to post Share on other sites
ThanhBT 0 Posted September 18, 2011 Anyone can help me plz? Share this post Link to post Share on other sites
RAMzor 2 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 Share this post Link to post Share on other sites