Solved

Can VC.Net MFC application call C# DLL?

Posted on 2006-06-13
5
397 Views
Last Modified: 2011-10-03
Hello

I have a VC.Net MFC application. I want to improve the UI of the application using may be C# or VB.Net.How do i do it?

Can i use C# Dll ? Can VC.Net MFC application call C# DLL? if not then which other way can i integrate VC++ and C# code?


thanks (in advance)
0
Comment
Question by:Anisha
5 Comments
 
LVL 11

Expert Comment

by:Jase-Coder
ID: 16892508
you need to use the managed version of C++ to integrate both langauges
0
 
LVL 25

Accepted Solution

by:
dstanley9 earned 500 total points
ID: 16893942
You could also create a COM Callable wrapper (CCW) for your C# library that can be invoked from C++:

http://www.codeproject.com/dotnet/nettocom.asp
http://www.eggheadcafe.com/articles/20051019.asp
http://msdn2.microsoft.com/en-us/library/ms404285.aspx
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

708 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

17 Experts available now in Live!

Get 1:1 Help Now