Click here to Skip to main content
15,907,906 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionClone(..., PixelFormat) function doesn't change PixelFormat of the image Pin
1980soyo18-May-06 2:12
1980soyo18-May-06 2:12 
Questiona question abt DispatchMessage Pin
namaskaaram18-May-06 1:52
namaskaaram18-May-06 1:52 
AnswerRe: a question abt DispatchMessage Pin
voorugonda prashanth18-May-06 2:02
voorugonda prashanth18-May-06 2:02 
GeneralRe: a question abt DispatchMessage Pin
namaskaaram18-May-06 4:43
namaskaaram18-May-06 4:43 
AnswerRe: a question abt DispatchMessage Pin
NiceNaidu18-May-06 2:44
NiceNaidu18-May-06 2:44 
GeneralRe: a question abt DispatchMessage Pin
namaskaaram18-May-06 4:42
namaskaaram18-May-06 4:42 
QuestionHow to extract all text in current command prompt window Pin
kflrei18-May-06 1:33
kflrei18-May-06 1:33 
AnswerRe: How to extract all text in current command prompt window Pin
NiceNaidu18-May-06 2:02
NiceNaidu18-May-06 2:02 
Try this..

HANDLE hStdout;<br />
SMALL_RECT srctReadRect; <br />
CHAR_INFO chiBuffer[160]; // [2][80]; <br />
COORD coordBufSize; <br />
COORD coordBufCoord;<br />
<br />
// Get a handle to the STDOUT screen buffer to copy from  <br />
 <br />
    hStdout = GetStdHandle(STD_OUTPUT_HANDLE); <br />
<br />
 if (hStdout == INVALID_HANDLE_VALUE )<br />
 {<br />
   //Display Error<br />
 }<br />
<br />
 // Set the source rectangle. <br />
 <br />
    srctReadRect.Top = 0;    // top left: row 0, col 0 <br />
    srctReadRect.Left = 0; <br />
    srctReadRect.Bottom = 1; // bot. right: row 1, col 79 <br />
    srctReadRect.Right = 79; <br />
 <br />
    // The temporary buffer size is 2 rows x 80 columns. <br />
 <br />
    coordBufSize.Y = 2; <br />
    coordBufSize.X = 80; <br />
 <br />
    // The top left destination cell of the temporary buffer is <br />
    // row 0, col 0. <br />
 <br />
    coordBufCoord.X = 0; <br />
    coordBufCoord.Y = 0; <br />
 <br />
    // Copy the block from the screen buffer to the temp. buffer. <br />
 <br />
    fSuccess = ReadConsoleOutput( <br />
       hStdout,        // screen buffer to read from <br />
       chiBuffer,      // buffer to copy into <br />
       coordBufSize,   // col-row size of chiBuffer <br />
       coordBufCoord,  // top left dest. cell in chiBuffer <br />
       &srctReadRect); // screen buffer source rectangle <br />
    if (! fSuccess) <br />
    {<br />
        printf("ReadConsoleOutput (%d)\n", GetLastError()); <br />
        return;<br />
    }


Now create a File and write the Buffer into it




Appu..
"If you judge people, you have no time to love them."
GeneralRe: How to extract all text in current command prompt window Pin
kflrei20-May-06 23:06
kflrei20-May-06 23:06 
AnswerRe: How to extract all text in current command prompt window Pin
Eytukan18-May-06 4:27
Eytukan18-May-06 4:27 
GeneralRe: How to extract all text in current command prompt window Pin
kflrei20-May-06 23:08
kflrei20-May-06 23:08 
QuestionFlat Scrollbars Pin
Sarath C18-May-06 1:17
Sarath C18-May-06 1:17 
AnswerRe: Flat Scrollbars Pin
Laxman Auti18-May-06 1:36
Laxman Auti18-May-06 1:36 
GeneralRe: Flat Scrollbars Pin
Sarath C18-May-06 1:41
Sarath C18-May-06 1:41 
GeneralRe: Flat Scrollbars Pin
Laxman Auti18-May-06 2:08
Laxman Auti18-May-06 2:08 
QuestionStart console application in background Pin
GDavy18-May-06 1:15
GDavy18-May-06 1:15 
AnswerRe: Start console application in background Pin
Laxman Auti18-May-06 1:33
Laxman Auti18-May-06 1:33 
AnswerRe: Start console application in background Pin
Rage18-May-06 1:36
professionalRage18-May-06 1:36 
GeneralRe: Start console application in background Pin
GDavy18-May-06 2:01
GDavy18-May-06 2:01 
AnswerRe: Start console application in background Pin
Monty218-May-06 2:13
Monty218-May-06 2:13 
QuestionZip a file without zipping in folder Pin
zahid_ash18-May-06 1:13
zahid_ash18-May-06 1:13 
AnswerRe: Zip a file without zipping in folder Pin
ThatsAlok18-May-06 1:48
ThatsAlok18-May-06 1:48 
GeneralRe: Zip a file without zipping in folder Pin
zahid_ash18-May-06 2:05
zahid_ash18-May-06 2:05 
GeneralRe: Zip a file without zipping in folder Pin
ThatsAlok18-May-06 2:11
ThatsAlok18-May-06 2:11 
GeneralRe: Zip a file without zipping in folder Pin
zahid_ash18-May-06 2:14
zahid_ash18-May-06 2:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.