Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET 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 September 27th, 2004, 08:12 AM
Registered User
 
Join Date: Oct 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using .NET classLib in VB6 env


Has anybody any experience with calling a VB.NET Class Library from a VB6 COM application? In the Wrox "Prof VB.NET" book they talk about having to register my .NET lib for use by COM by using "Regasm". But since I am going to run this in the COM world I don't have RegAsm on my Target Machine. I have tried everything, but the closest I get is to make a Setup of my .NET lib that registers my lib as a COM object. But when I run my COM application (after clean compile) and get to the code where I want to create my .NET class I get "ActiveX cannot create object". I know this has to do with registering etc. But how can I register my library if I don't have RegAsm and if my Setup doesn't do it (even if I have set Primary Output in my Setup Project to be registered as "vsdrpCOM")
This is driving me nuts - I had the impression it was possible to mix VB6 and VB.NET. But it won't work.

Please help!


 
Old September 27th, 2004, 09:36 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

You can use a .NET library in the COM world, but you must have the .NET framework installed on the machine. In that case you would have RegAsm.

You can't run any .NET anything without the framework.


Hal Levy
I am here to help you, not do it for you.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Consume VB6.0 WebService in ASP.NET using VB.NET pinkarc .NET Web Services 1 March 5th, 2007 08:19 AM
Re:COM and VB6 to .NET timlin All Other Wrox Books 2 May 4th, 2005 10:33 AM
How to parse env variables zoostar XML 3 April 1st, 2005 06:00 AM
Window.open from OnClick event in framed env. nancy Javascript How-To 3 December 22nd, 2004 11:30 AM
how to get env variable values? suri Java Databases 1 September 20th, 2003 05:34 PM





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