how to convert to COM server from C++ lib module
-
Hi I have a C++ project as exe , I want to export some of the methods of the classes to use them in .net (C#) . I think better idea would be to create a ATL project and create interfaces and implement the methods by calling the C++ lib methods. Is there any other way to do this , which would be fessible and efficient ? thanks
-
Hi I have a C++ project as exe , I want to export some of the methods of the classes to use them in .net (C#) . I think better idea would be to create a ATL project and create interfaces and implement the methods by calling the C++ lib methods. Is there any other way to do this , which would be fessible and efficient ? thanks
Per your title, if this is a COM Server, then you already have access to that in .NET. Just open your .NET Project, right-click on References and select "Add references ...", click on the COM tab and find your COM server in the list of named objects. When you select it, Studio will automatically generate a .NET wrapper to your COM interfaces and you can use that code directly in your .NET project. If it's not already a COM object, you can do it either way: create a DLL that you call into from your .NET project or a COM object that you reference in your .NET Project (as I just mentioned). Not entirely certain this answers your question, if not, you'll need to provide more details as to what, exactly, you're wanting to accomplish.
:..::. Douglas H. Troy ::..
Bad Astronomy |VCF|wxWidgets|WTL