making dll of an exe project

i have project that is on c++. it runs fine. i want to use it in my C# application as a dll. i have created its dll and but firing exception of "interprocess communication". Any idea to resolve them.

is this a doable task that creating dll of an exe project and using it in C# application?
Please help...
is this a doable task that creating dll of an exe project and using it in C# application?

Yes

i have created its dll and but firing exception of "interprocess communication". Any idea to resolve them.

How are you calling your DLL?

If it is purely native C++, you will have to expose C functions and call them via P/Invoke. Is this what you're doing?

Consuming Unmanaged DLL Functions
http://msdn.microsoft.com/en-us/library/26thfadc.aspx

The other possibilites involve COM (convert you DLL into a in-process COM server and use the .NET-COM interop mechanism) and C++/CLI (create a C++/CLI DLL which implements a .NET API to expose you native C++ functionality)

Andy
Last edited on
Topic archived. No new replies allowed.