Solved

Using C# in VB6

Posted on 2004-04-13
6
214 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 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

Independent Software Vendors: 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

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 is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

691 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