Click here to Skip to main content
15,896,493 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,

I have to launch a dialog which is developed in MFC through C# application.

Can anybody give me the step by step prodedure?

It would be more helpful if i can get some sample code.
Posted

Do you have an exe which has the dialog? If yes, you just need to start the executable using the Process class.

If you have got only the source, add it to a C++/CLI project and write some managed methods that allows managed programmers to interact with this native dialog. Compile and use the mixed mode DLL in your C# application.
 
Share this answer
 
You could use the Process Class[^] from System.Diagnostics as suggested by the other poster, or alternatively import and use ShellExecute[^] (the former one is preferred because you're already on .NET)
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900