473,397 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Using the Class of a exe-application in VB6

Hi

I have written an application and now I like to use some public classes from
this application in VB6 (Like I use the Word.Application-Classes with
createobject).

In VB6 I made Active-X-exe for this type of Applications but in .NET this
type of project do not exists.

How can I access the classes of my .NET-Application? What do I have to do
(CreateObject or what else)?

Thanks for every help!

Nijazi Halimaji
Nov 21 '05 #1
1 973
Hi,

First you will need the dot net framework installed to use the
classes you made in vb.net. I would make the classes into a dll (class
library project) and use regasm to register the classes. All the classes in
the dll that you want to use with vb6 should be marked as comvisible.
Finally add a reference to the dll in vb6 to use the classes.

regasm
http://msdn.microsoft.com/library/de...lregasmexe.asp

comvisible
http://msdn.microsoft.com/library/de...classtopic.asp

Ken
----------------------
"Nijazi Halimaji" <sp***@gmx.net> wrote in message
news:uF*************@TK2MSFTNGP11.phx.gbl...
Hi

I have written an application and now I like to use some public classes from
this application in VB6 (Like I use the Word.Application-Classes with
createobject).

In VB6 I made Active-X-exe for this type of Applications but in .NET this
type of project do not exists.

How can I access the classes of my .NET-Application? What do I have to do
(CreateObject or what else)?

Thanks for every help!

Nijazi Halimaji

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: grutta | last post by:
I am writing a windows service that will recieve notification when a USB Device is insterted into the machine. I have used the RegisterDeviceNotification and the RegisterServiceCtrlHandlerEx with...
0
by: Vaci | last post by:
I have a class B, defined in B.dll. It derives from class A, defined in A.dll. I want to generate a schema for B using the xsd.exe tool, but xsd.exe complains that it can't find the base class. ...
3
by: TT (Tom Tempelaere) | last post by:
Hi there I am making a service project in C#, and I'm in the process of writing the installer. I made an installer class by using the "Add Installer" menu-item in the design window of the service,...
3
by: Leith Bade | last post by:
I have been trying to use the new Visual C++ Toolkit 2003 with the VC6 IDE I set up the executable, inlcude, and library directories to point to the new compilers I had to fix a few errors in the...
1
by: Chenzo | last post by:
I have an issue where the provided .wsdl file is being generated incorrectly with the WSDL.exe tool. I have to use digital client certificates for authentication and it has been determined...by...
2
by: Nathan Wiegman | last post by:
Hi, I am using the XSD utility to generate schemas for some of the classes that we serialize in our project. Everything works fine and dandy until I try and create a schema for a class that...
0
by: Tony Johansson | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file. called A One project that build a user control dll called B One project that build a class...
0
by: tony | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file called A One project that build a user control dll. In this user control we have a class...
5
by: Tony Johansson | last post by:
Hello! Assume I have two projects. In the first one I build the assembly test.exe and in the second one I build the class library myLibrary.dll This test.exe is using the class library called...
11
by: minishilpi | last post by:
I have a question - I have this code below to send an email and I have referenced the Microsoft CDO Library 2000. It doesn't throw any exception in the console window. It goes throughout the code...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.