I would like to know how to do this? For example, if exception occurs in C++ main application, how do send something to the GUI application? Any simple example would be appreciated.
If the C# GUI app starts the C++ console app, then the exit code of the latter (the return value of the main() function) can be accessed by the former, see the example here: Process.ExitCode. The general solution is to use some form of InterProcess Communication (IPC). Windows examples: here and here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With