?
Solved

Using C# in VB6

Posted on 2004-04-13
6
Medium Priority
?
215 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 12

Accepted Solution

by:
esteban_felipe earned 150 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 150 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

800 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