Calling .NET DLL from MFC App
-
Hi Friends, I want to develop a dll in .Net to send email (using namespace System.Web.Mail),then i want to call it in MFC application. So i want to know whether is it possible to call .Net dll in MFC App?? If yes,let me know in detail. Thanx in advance..
Reagards Shiva
-
Hi Friends, I want to develop a dll in .Net to send email (using namespace System.Web.Mail),then i want to call it in MFC application. So i want to know whether is it possible to call .Net dll in MFC App?? If yes,let me know in detail. Thanx in advance..
Reagards Shiva
Google search for calling managed dll from native[^] gives this http://support.microsoft.com/kb/828736[^] -Saurabh
-
Google search for calling managed dll from native[^] gives this http://support.microsoft.com/kb/828736[^] -Saurabh
True, But I am using MS Visual Studio 6.0. How to do it in that? any idea..?
Reagards Shiva
-
True, But I am using MS Visual Studio 6.0. How to do it in that? any idea..?
Reagards Shiva
Well you cannot create a managed dll in VC++ 6.0 so you have to use at least VC 2002 for that purpose. Once you create a managed dll it can consumed from any COM compatible language. So you can call it from VC++ 6.0. -Saurabh
-
Hi Friends, I want to develop a dll in .Net to send email (using namespace System.Web.Mail),then i want to call it in MFC application. So i want to know whether is it possible to call .Net dll in MFC App?? If yes,let me know in detail. Thanx in advance..
Reagards Shiva
You can do this. you just need to add a reference to the dll in the Proect\Property window under the COmmon Property\Refernece link. Click to the add new reference button and browse to the you .net dll. You can now use your dll in MFC. You should use gcnew insteasd of new for creating an object to a managed class.
Javed A Ansari Software Developer Hyderabad, India
-
You can do this. you just need to add a reference to the dll in the Proect\Property window under the COmmon Property\Refernece link. Click to the add new reference button and browse to the you .net dll. You can now use your dll in MFC. You should use gcnew insteasd of new for creating an object to a managed class.
Javed A Ansari Software Developer Hyderabad, India
I am using MS Visual Studio 6.0. There is no such options?
Reagards Shiva
-
Hi Friends, I want to develop a dll in .Net to send email (using namespace System.Web.Mail),then i want to call it in MFC application. So i want to know whether is it possible to call .Net dll in MFC App?? If yes,let me know in detail. Thanx in advance..
Reagards Shiva
Shivarudrayya H wrote:
So i want to know whether is it possible to call .Net dll in MFC App?? If yes,let me know in detail.
Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
Douglas Adams, "Dirk Gently's Holistic Detective Agency" -
Hi Friends, I want to develop a dll in .Net to send email (using namespace System.Web.Mail),then i want to call it in MFC application. So i want to know whether is it possible to call .Net dll in MFC App?? If yes,let me know in detail. Thanx in advance..
Reagards Shiva
-
I am using Visual Studio VC++ 6.0. But that artical is specific to Visual Studio 2005..!!
Reagards Shiva