Solved

Using C# in VB6

Posted on 2004-04-13
6
210 Views
Last Modified: 2010-04-15
Hi Friends,

Can we develop ActiveX Exes in  C#.Net?  If yes, how?

How to use C# DLL in VB6 Code?

Thanks alot.

Regards,
0
Comment
Question by:haibala
  • 2
6 Comments
 
LVL 12

Accepted Solution

by:
esteban_felipe earned 50 total points
ID: 10813789
Hi haibala,

Actually not ActiveX objects but COM objects. You can develop your COM objects with C# and follow some steps to expose it to not-.net clients. Here's the documentation link:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconexposingnetframeworkcomponentstocom.asp

Esteban Felipe
www.estebanf.com
0
 
LVL 22

Assisted Solution

by:_TAD_
_TAD_ earned 50 total points
ID: 10814691

haibala> Actually I would reccomend not using C# in a VB6 app.  Certainly you *can* do it, but then you have to have the .Net framework installed on the machine.  If you are going to go through all of that trouble then why not just create a dll in VB6 and compile it to binary?

Don't get me wrong, I am a *huge* fan of C# and .Net, but I am also practical.  If your app is in VB6, then use VB6 to improve your app.  If you want to upgrade your app from VB6 to .net, then I would reccomend updating your interface first and dlls/COM components later.  
0
 

Author Comment

by:haibala
ID: 10821831
Hi TAD,

Thanks for your views and I agree with you.

Some things can't be avoided especially when boss says so............

Regards,
0
 

Author Comment

by:haibala
ID: 10821844
Hi felipe,

Thanks for the information.
Will go through the URL.

Basically I would like to know how do I create "Out-Of-Process DLLs" in C#.Net.

Regards,
Bala.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question