DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Use .net dll in VB6?

  1. #1
    Join Date
    Nov 2004
    Posts
    54

    Use .net dll in VB6?

    I want use a .net dll in vb6. I have selected "Register for COM Interop" in VS.net proyect. I have registered dll with resgam. I have generated .tlb file. I have add in references tlb file. But when I run it tak error "File or asembly name xxxx , or one of its components, was not found".

    Before register with resgam the error was "ActiveX component can't create object".
    Do you know how use .net dlls in vb6?
    Thanks
    _______________
    Hip Hop
    Foro heavy

  2. #2
    Join Date
    Dec 2003
    Posts
    2,750
    Paul
    ~~~~
    Microsoft MVP (Visual Basic)

  3. #3
    Join Date
    Nov 2004
    Posts
    54
    Thanks It helps me.
    But now I have another problem, when I write "object." it don't shome the public methods of the class (after write dot).
    If I write method it runs ok, but can I show the methods of the class when I write dot after de object?
    Thanksss

  4. #4
    Join Date
    Jun 2004
    Posts
    93
    Your class needs to use the ComClass attribute.
    I pulled my hair out over this same problem.

    The easiest way to see this syntax is to add a new "Com Class" object to your project.
    Project...Add new item...COM Class

  5. #5
    Join Date
    Nov 2004
    Posts
    54
    Finally, I write [ClassInterface(ClassInterfaceType.AutoDual)] before class definition and it runs ok, althought I don't know what do [ClassInterface(ClassInterfaceType.AutoDual)]

Similar Threads

  1. Send Notifications from .NET to VB6
    By Peter Oravec in forum .NET
    Replies: 0
    Last Post: 03-30-2005, 02:24 AM
  2. .Net Service and VB6 Application
    By ctremblay in forum .NET
    Replies: 0
    Last Post: 03-23-2005, 06:36 PM
  3. I'm confused !!!
    By cgts in forum .NET
    Replies: 24
    Last Post: 02-28-2003, 04:43 PM
  4. Re: .NET impact negative
    By Michael D. Kersey in forum .NET
    Replies: 10
    Last Post: 08-25-2002, 11:14 PM
  5. Replies: 0
    Last Post: 11-19-2001, 06:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center