but that is a console window, not a gui window such as one that might be created using this tutorial.Originally Posted by ChaosEngine
but that is a console window, not a gui window such as one that might be created using this tutorial.Originally Posted by ChaosEngine
so what? it's still a window in a gui. it just happens to display a console. you're making a distinction where none exists. I could redirect stdout out to a dialog box (such as one that might be created using that tutorial)in my app if I wanted. Hell you could redirect stdout to and display it as rotating 3d text in a directx app (it'd be slow as hell, but technically it's possible)Originally Posted by Ancient Dragon
"I saw a sign that said 'Drink Canada Dry', so I started"
-- Brendan Behan
Free Compiler: Visual C++ 2005 Express
If you program in C++, you need Boost. You should also know how to use the Standard Library (STL). Want to make games? After reading this, I don't like WxWidgets anymore. Want to add some scripting to your App?
how do you guys put signatures?
Edit your member profile in your control panel (User CP).
The proof is in the pudding -- show us an example of doing that please. After creating the window, how do you redirect stdout to that window so that I can use printf() and the output will go to that window?Originally Posted by ChaosEngine
Last edited by Ancient Dragon; 05-30-2006 at 06:24 PM.
@citizen, i cant seem to find a place where i can edit my signature.
First, you obviously need to be signed in. Then underneath the
current path of the thread you're in, there should be a link for
"User CP." For example, as I type this reply, the path is:
C Board > General Programming Boards > C++ Programming >
programing in DOS?
directly under the C Board part it says Reply to Thread (Because
that's what I'm doing). Then under that it says User CP. Click
that, and it should say edit signature along the left.
No No's:
fflush (stdin); gets (); void main ();
Goodies:
Example of fgets (); The FAQ, C/C++ Reference
My Gear:
OS - Windows XP
IDE - MS Visual C++ 2008 Express Edition
ASCII stupid question, get a stupid ANSI
hmmm theres no icon called edit signature.
not enough posts mayb?
On the Left Hand Side it should say Control Panel. Under that it
should say Settings and Options. Directly under that it should
have Edit Signature - I don't think posts have anything to do
with it.
No No's:
fflush (stdin); gets (); void main ();
Goodies:
Example of fgets (); The FAQ, C/C++ Reference
My Gear:
OS - Windows XP
IDE - MS Visual C++ 2008 Express Edition
ASCII stupid question, get a stupid ANSI
I don't have an example here and I don't have time to write one, but you can have a look at this code project article to get an idea. that's for C++ cout.Originally Posted by Ancient Dragon
for C printf, look into the freopen function.
"I saw a sign that said 'Drink Canada Dry', so I started"
-- Brendan Behan
Free Compiler: Visual C++ 2005 Express
If you program in C++, you need Boost. You should also know how to use the Standard Library (STL). Want to make games? After reading this, I don't like WxWidgets anymore. Want to add some scripting to your App?
I recently made a GUI helper dll.
Right now it has functions to.
Make Windows
Add Text Area's
Add Text Input Areas
Buttons
MsgBox's
Its basic but it make it a bit faster pm if anyone wants to try it out.
Its Really All up to you.
Thanks for that codeproject link -- but just as I suspected there is a great deal more to it than just simple redirection.