Thema: Delphi Windows API design

Einzelnen Beitrag anzeigen

frankly

Registriert seit: 5. Mai 2003
22 Beiträge
 
#10
  Alt 6. Mai 2003, 10:15
Oh yes, I have 6 programs written in C and they communicate with each other using TCP connections. So one can simply execute them and then they would automatically send predefined messages to each other.

But one of these 6 programs require an input when running and then it will go back to run and then run till the end. These programs will end properly. I mean you can just leave it there after entering the input.

I created a main window and created 6 child windows now. And I want each of these child windows to display the "printf" that is outputted by the 6 programs. So the child windows are like some screens display messages. And as I mentioned above, one of them will need input so one of these windows need to accept input.

So what I want to do is to execute these 6 programs in the main window, I want to make a menu option "execute", and once it is clicked, the 6 programs will be called and executed. This is why I'm thinking of WinExec...but now I think I have to use CreateProcess().

So when this "execute" option is chosen, my program should call the 6 .exe to run the programs. And I am still messing with the attributes...

Hope this would help you to understand more of my program, I appreciate very much that you're trying to help me as best as you could. Just want to say a BIG thank you to you
  Mit Zitat antworten Zitat