![]() |
|
|||||||
| VB.NET General Discussion VB.NET general discussion area |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
In VB6, I used CreateObject function to invoke a DLL application
I wrote a DLL application in VB.NET. How can I invoke DLL application in VB.NET?? In VB 6 HelloWorld.dll dim objHelloWorld as object objHelloWorld= CreateObject("HelloWorld.DisplayForm") |
|
||||
|
.Net dll libraries aren't COM libraries as everything VB6, .Net deliberately moved away from COM. With .Net you reference the local dll assembly and use its objects like any other class object in .Net.
Code:
Dim c As New ClassLibrary1.Class1 c.Method()
__________________
See this thread about how to use forum markup codes for code blocks etc (present the problem/post properly )Some useful links: Learning videoes, WMI Code Creator, MSDN, The Code Project, WindowsClient.net, ASP.net, W3 Schools, Regular-Expressions.info, GDI+ FAQ DR. WEIR: Download it to a non-networked, firewalled computer. TECHNICIAN: Yes, ma'am. |
|
||||
|
You use the Add Reference dialog, access this
__________________
See this thread about how to use forum markup codes for code blocks etc (present the problem/post properly )Some useful links: Learning videoes, WMI Code Creator, MSDN, The Code Project, WindowsClient.net, ASP.net, W3 Schools, Regular-Expressions.info, GDI+ FAQ DR. WEIR: Download it to a non-networked, firewalled computer. TECHNICIAN: Yes, ma'am. |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|