3

Is it possible to launch a C#.Net (2.0) application from an application written in C++???

Thanks,

EDIT: Cool - so I just have to know where the app is:

LPTSTR szCmdline = _tcsdup(TEXT("C:\\Program Files\\MyApp -L -S"));
CreateProcess(NULL, szCmdline, /* ... */);
Paligulus
  • 493
  • 1
  • 4
  • 14

2 Answers2

7

You can launch any EXE using CreatePocess or ShellExecute API. ( including C#.Net)

aJ.
  • 34,624
  • 22
  • 86
  • 128
4

Yes - for example using system function or CreateProcess \ CreateProcessW \ CreateProcessA [or fork+ exexif you use *nix + mono]

Maciej Piechotka
  • 7,028
  • 6
  • 39
  • 61