My C++ MFC-app into a dll -> to be used in .NET app…
-
I’ve mad an application (or apart of an app) in C++ that I’d like to use in .NET C# Windows Application. The thing I like to accomplish is to build some kind of component of my existing C++ app and expose some functions that I later can call from the C# app. The application I like to encapsulate can be seen ass a window (MFC CWnd in ny case). My fist question is if this is possible? If, then my second Q is How..? I’ve made som COM and ActiveX programming so I’m not totally new in this topic, but I really don’t where to start. I’m not expecting a total solution of my problem but Ideas where to start would be great. Articles about this would be great. (Have not found any of them myself…) _____________________________ ...and justice for all APe
-
I’ve mad an application (or apart of an app) in C++ that I’d like to use in .NET C# Windows Application. The thing I like to accomplish is to build some kind of component of my existing C++ app and expose some functions that I later can call from the C# app. The application I like to encapsulate can be seen ass a window (MFC CWnd in ny case). My fist question is if this is possible? If, then my second Q is How..? I’ve made som COM and ActiveX programming so I’m not totally new in this topic, but I really don’t where to start. I’m not expecting a total solution of my problem but Ideas where to start would be great. Articles about this would be great. (Have not found any of them myself…) _____________________________ ...and justice for all APe
Try writing a managed wrapper. The following article tells how to write a managed wrapper for zlib library. See if this can help you. http://www.codeproject.com/managedcpp/mcppzlibwrapper.asp[^] Rahim Rattani Software Engineer, Matrix Systems (Pvt) Ltd., Karachi - Pakistan