Results 1 to 7 of 7

Thread: Use .Net Dlls in VB

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2000
    Posts
    17

    Use .Net Dlls in VB

    Has anyone tried calling a .Net Dll in VB6.0/ I'd like to know how one can accomplish this, if at ll it can be done.

    Thanks
    Simple VB

  2. #2
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308
    I haven't called a .NET dll in VB but I think the method of calling will be the same. Have you tried it, is it giving any error message ?

  3. #3
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    there is an app that comes with the .NET framework to make an ActiveX wrapper for a .NET dll but dont use it. Find a regualr Activex dll to do what you want. To use a .NET dll in a vb6 app you need the dll, the activex wrapper, the .NET framework, AND the Vb6 runtimes. Too much!!
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  4. #4
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308
    Where can I find the ActiveX wrapper and the .Net framework. Can you tell the process of calling it.

  5. #5
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    .NEt framework is on Microsoft's website. The tool to create a wrapper comes with it.

    Again, you dont want to do this.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  6. #6
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    I agree w/ cander on this..... the biggest reason: the .NET framework weighs in around 20Meg! All that jsut to be able to call a DLL.... overkill....
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  7. #7
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Especially when there are regular aCTIVEx DLL'S out there that will do the same thing you need the .NET dll for without they extreme overhead of needing the dll, the wrapper ,the vb runtimes, and the .net framework...all for a single dll.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width