![]() |
Click here to advertise with us
|
|
|||||||
| 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()
__________________
Some useful links: Learning videoes, Code Samples, WMI Code Creator, MSDN, The Code Project, WindowsClient.net, ASP.net, W3 Schools, Regular-Expressions.info, GDI+ FAQ
How to format posts with code blocks etc - present the problem/post properly ![]() |
|
||||
|
You use the Add Reference dialog, access this
__________________
Some useful links: Learning videoes, Code Samples, WMI Code Creator, MSDN, The Code Project, WindowsClient.net, ASP.net, W3 Schools, Regular-Expressions.info, GDI+ FAQ
How to format posts with code blocks etc - present the problem/post properly ![]() |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|