SxyfrG Posted August 11, 2008 Posted August 11, 2008 Just a quick question, is it possible to use a VB.net dll i've created in AutoIT? My scripts:AppLauncherTRAY - Awesome app launcher that runs from the system tray NEW VERSION! | Run Length Encoding - VERY simple compression in pure autoit | Simple Minesweeper Game - Fun little game :)My website
amokoura Posted August 11, 2008 Posted August 11, 2008 My guess is that you can't if it's just a basic .NET assembly. BUT you could make the VB project COM-compatible so AutoIt can use it with ObjXXX() functions. By googling ".NET COM interoperability" you could find something to give some COM magic to your project
SxyfrG Posted August 11, 2008 Author Posted August 11, 2008 (edited) Sounds good, i'll give that a whiz and get back with my results tomorrow arvo (about 19 hours away )*EDIT*Had a quick go at it tonight, no luck =\Would anyone be able to point me in the right direction? I've tried http://msdn.microsoft.com/en-us/library/x66s8zcd(VS.71).aspx and just shoved in my Public Functions above the End Class statement but to no avail. (I'm a complete VB.net noob ) Edited August 11, 2008 by SxyfrG My scripts:AppLauncherTRAY - Awesome app launcher that runs from the system tray NEW VERSION! | Run Length Encoding - VERY simple compression in pure autoit | Simple Minesweeper Game - Fun little game :)My website
ptrex Posted August 11, 2008 Posted August 11, 2008 @allThis is the theory on how to do it.For invoking the .NET component from COM you need to generate COM Callable Wrapper and Register it. The following are the list of steps that needs to be done for invoking .NET assembly from COM 1. Create a Type Library using Tlbexp.exe (see here : C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\TlbExp.exe)2. Register the type library using Regasm.exe (see here : C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe )Never actualy done it myself so if you get it going let us know.regards,ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New
SxyfrG Posted August 11, 2008 Author Posted August 11, 2008 (edited) I don't have either of those tools (and i can't find a way to download them) I'm using Visual Studio Express 2008 (Visual Studio 9.0), could this be causing a problem? *EDIT* It uses .NET framework 3.5 Edited August 11, 2008 by SxyfrG My scripts:AppLauncherTRAY - Awesome app launcher that runs from the system tray NEW VERSION! | Run Length Encoding - VERY simple compression in pure autoit | Simple Minesweeper Game - Fun little game :)My website
amokoura Posted August 12, 2008 Posted August 12, 2008 I don't have either of those tools (and i can't find a way to download them) I'm using Visual Studio Express 2008 (Visual Studio 9.0), could this be causing a problem?*EDIT* It uses .NET framework 3.5I'm not sure if Express Editions contains those utilities but I recall the freely available .NET SDK has all the bells and whistles. They're command-line run executables. So google ".NET SDK"
ptrex Posted August 12, 2008 Posted August 12, 2008 @SxyfrG If you post the DLL Code I will play around with it, and see that I can get it going. regards ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New
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