0

Hello

For example I have a winapi GUI program called blabla.exe

I have another winapi GUI program called TYCK.exe.

Now how to make blabla.exe run in TYCK.exe??

I was using

system("blabla.exe");

, but this is not portable and it goes through cms, what I dont realy like.

Is there any other way instead of system("blabla.exe");, using WinApi?

Thanks

2
Contributors
3
Replies
4
Views
10 Years
Discussion Span
Last Post by Ancient Dragon
0

There are several wn32 api functions: CreateProcess() gives you the most control over the process. But SHExecute() mabe a little simpler to use.

>>but this is not portable
if you mean portable across operating systems, then that is nothing to worry about because neither are any of the win32 api functions. Portable among compilers? Yes it is because system() is a standard C function.

0

may I get any example of SHExecute() usage...


Sorry about that "portable" word. I wanted to say, that you can close CMD when program loads...and that sucks

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.