For winXP
1. If the console is in FULL-SCREEN then press alt+enter to make it windowed.
2. Right click on the title bar and chose properties
3. In options tab under edit options make sure "quick-edit mode" is checked.
4. Now u can select the text with ur mouse.
5. Press crtl+C.

the text is now in clipboard,

For winXP
1. If the console is in FULL-SCREEN then press alt+enter to make it windowed.
2. Right click on the title bar and chose properties
3. In options tab under edit options make sure "quick-edit mode" is checked.
4. Now u can select the text with ur mouse.
5. Press crtl+C.

the text is now in clipboard,

This doesn't sound much like C++ :)

hey guyz, I am extremely sorry. I did not see the "using c++" thing . I just thought he was asking how to copy something from the console to the clipboard. I mean if u need to print or copy the output that u get from c++ in console to the clipboard.
As for the solution of the actual question i have little or no clue. I just know that there is a Clipboard class for u to work in VC++ using windows clipboard. But i dont know how can u do that in console without using any predefined Clipboard class. I would like to know that myself.

Thank you and my apologies once again.

you need to use a win32 function - but i cannot remember which one! try a google search to see what comes up

This article has been dead for over six months. Start a new discussion instead.