Possible to create a C# DLL with dialogs and GUI -- callable by a C program?

  • Thread starter Harry Whitehouse
  • Start date
H

Harry Whitehouse

I have a rather large legacy application written in C++. I want to add
some new functionality which would be easier to do in C#.

Is it possible to create a DLL in C# which can be called from my C++
application, with the C# DLL presenting dialogs and other GUI features? I
know I can create a simple non-GUI DLL (e.g. for some computations), but I
haven't seen anything about a dialog laden DLL.

TIA

Harry
 
D

David Browne

Harry Whitehouse said:
I have a rather large legacy application written in C++. I want to add
some new functionality which would be easier to do in C#.

Is it possible to create a DLL in C# which can be called from my C++
application, with the C# DLL presenting dialogs and other GUI features? I
know I can create a simple non-GUI DLL (e.g. for some computations), but I
haven't seen anything about a dialog laden DLL.


Yes. This is a very common migration path for existing C++ MFC windows
apps.

See, EG:

Using a Windows Form User Control in MFC
http://msdn2.microsoft.com/en-us/library/ahdd1h97(VS.80).aspx

David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top