![]() |
C++ Console
How can I intergrate a console in a Windows GUI application. A CMD type thing.
|
Re: C++ Console
Quote:
|
Re: C++ Console
If you'd like to open a separate command window, just execute a system ("cmd.exe"); call. If you want to make your own command interpreter, write it, and replace "cmd.exe" with "myCommandInterpreter.exe" (or whatever you call it).
Code:
#include <windows.h> |
Re: C++ Console
Well you see I just want a console in my GUI program because I need this to do some winsock because yeh... Well please tell me how to make a console type thing inside a GUI program?? This is very important to me
|
Re: C++ Console
No, I don't see. Do you see? Did you even read the response? Do you see that it opens a console (without writing the rest of your code, of course). If you don't want the system's console window, make your own window and write your own command interpreter.
|
Re: C++ Console
Where can I find this stdafx.h header file? and does this make a console inside your GUI window?
|
Re: C++ Console
Quote:
|
Re: C++ Console
yeh but i wonder how can i make a text box be some batch file i have made can someone give me a tip?
|
Re: C++ Console
Quote:
|
Re: C++ Console
I have made this Batch File and I want a text box kind of thing (where user can input) to be related to a batch file... so that if in my batch file i have for example
set hello= set /p hello=Command: well that "Command:" appears in the text box in the c++ program... |
| All times are GMT +5.5. The time now is 20:41. |