Wrox Programmer Forums
|
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 15th, 2005, 02:00 PM
Authorized User
 
Join Date: Apr 2005
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
_______________
http://www.hhdirecto.net
http://forosunidos.webcindario.com

__________________
http://www.terapiahiphop.com
 
Old November 16th, 2005, 09:48 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma
Default

U have put this assembly in GAC or are u using it from the application directory

Regards
Ankur Verma
 
Old November 16th, 2005, 11:16 AM
Authorized User
 
Join Date: Apr 2005
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks I have solve it with this link
http://support.microsoft.com/default...b;en-us;817248
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

 
Old March 8th, 2006, 05:39 PM
Registered User
 
Join Date: Mar 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In order to enable intellisense for your .net dll in vb6, you need to define a public interface to expose your methods and properties. This link shows you how.
http://support.microsoft.com/?id=813809





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use vb6.0 ocx or dll in asp.net 1.1 Pramods ASP.NET 1.0 and 1.1 Basics 1 June 22nd, 2007 06:32 AM
VB6 DLL in ASP.NET 2.0 thenoseknows ASP.NET 2.0 Professional 1 March 2nd, 2007 05:04 PM
Using .NET DLL from inside VB6 application Dmitriy General .NET 1 January 30th, 2006 04:45 PM
Using .NET Dll from VB6 application Dmitriy Pro VB 6 5 January 30th, 2006 04:43 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.