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, /* ... */); 

2 Answers 2

7

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

Sign up to request clarification or add additional context in comments.

2 Comments

So the fact that it is a .Net app is irrelevant?
Yes, These APIs allow you to launch any EXEs
4

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

1 Comment

Do you know if this is a blocking function - will my app hang?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.