Solved

Using C# in VB6

Posted on 2004-04-13
6
207 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
Comment Utility
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
Comment Utility

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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now