| jekyee (2) | |||
|
I'm writing ExecDosCmd() to execute dos commands and get output. It works well,howerver, when the following line is added to make the programme run in the background,I can't get correct output. #pragma comment(linker,"/subsystem:\"windows\" /entry:\"mainCRTStartup\"") I use VC6 to edit and compile the codes. ////
Can anyone tell me why it's wrong and how to correct it? | |||
|
Last edited on
|
|||
| modoran (1245) | |
| Why don't you create a new win32 project (GUI project) instead of that #pragma directive ?? | |
|
|
|
| jekyee (2) | |
|
I want the application( as client) to run in the background on windows system and get correct output after executing the dos commands.so I needn't GUI. The output will be sent to server application secretly. | |
|
Last edited on
|
|