Click here to Skip to main content
15,887,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: help plz Pin
ThatsAlok2-Mar-06 17:27
ThatsAlok2-Mar-06 17:27 
AnswerRe: help plz Pin
DoctorEd5-Mar-06 10:36
DoctorEd5-Mar-06 10:36 
QuestionSaving console's output buffer Pin
Brett Peirce2-Mar-06 6:43
Brett Peirce2-Mar-06 6:43 
AnswerRe: Saving console's output buffer Pin
David Crow2-Mar-06 8:06
David Crow2-Mar-06 8:06 
GeneralRe: Saving console's output buffer Pin
Brett Peirce2-Mar-06 9:05
Brett Peirce2-Mar-06 9:05 
QuestionRe: Saving console's output buffer Pin
David Crow2-Mar-06 9:38
David Crow2-Mar-06 9:38 
AnswerRe: Saving console's output buffer Pin
Brett Peirce2-Mar-06 12:56
Brett Peirce2-Mar-06 12:56 
GeneralRe: Saving console's output buffer Pin
David Crow3-Mar-06 2:50
David Crow3-Mar-06 2:50 
If what I'm thinking of is what you are after, I'm going way back in my brain to retrieve it. If this "splash screen" is part of the console window, as opposed to a GUI splash screen, you need to read 4,000 bytes from memory address 0xb8000000. That is the starting address of the video display. Something like:

char far *pDisplay = (char far *) 0xb8000000;
char sBuffer[4000];
 
// save contents of screen
char far *pTemp = pDisplay;
for (int x = 0; x < sizeof(sBuffer); x += 2)
{
    sBuffer[x]   = *pTemp++; // character
    sBuffer[x+1] = *pTemp++; // attribute
}
 
// write new stuff to screen
 
// restore screen
for (x = 0; x < sizeof(sBuffer); x += 2)
{
    *pTemp++ = sBuffer[x];   // character
    *pTemp++ = sBuffer[x+1]; // attribute
}
Am I way off track here?


"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

"There is no death, only a change of worlds." - Native American Proverb


GeneralRe: Saving console's output buffer Pin
Brett Peirce6-Mar-06 6:30
Brett Peirce6-Mar-06 6:30 
Questionpassing CString into ofstream? Pin
ldsdbomber2-Mar-06 6:09
ldsdbomber2-Mar-06 6:09 
AnswerRe: passing CString into ofstream? Pin
David Crow2-Mar-06 6:32
David Crow2-Mar-06 6:32 
GeneralRe: passing CString into ofstream? Pin
ldsdbomber2-Mar-06 21:54
ldsdbomber2-Mar-06 21:54 
QuestionWMI Win32_PingStatus address help Pin
viperlogic2-Mar-06 5:47
viperlogic2-Mar-06 5:47 
QuestionRe: WMI Win32_PingStatus address help Pin
David Crow2-Mar-06 8:02
David Crow2-Mar-06 8:02 
AnswerRe: WMI Win32_PingStatus address help Pin
viperlogic2-Mar-06 8:19
viperlogic2-Mar-06 8:19 
GeneralRe: WMI Win32_PingStatus address help Pin
David Crow2-Mar-06 8:26
David Crow2-Mar-06 8:26 
GeneralRe: WMI Win32_PingStatus address help Pin
viperlogic2-Mar-06 8:36
viperlogic2-Mar-06 8:36 
GeneralRe: WMI Win32_PingStatus address help Pin
Ryan Binns2-Mar-06 16:59
Ryan Binns2-Mar-06 16:59 
GeneralRe: WMI Win32_PingStatus address help Pin
viperlogic2-Mar-06 22:44
viperlogic2-Mar-06 22:44 
GeneralRe: WMI Win32_PingStatus address help Pin
Nibu babu thomas3-Mar-06 0:27
Nibu babu thomas3-Mar-06 0:27 
GeneralRe: WMI Win32_PingStatus address help Pin
viperlogic3-Mar-06 4:36
viperlogic3-Mar-06 4:36 
GeneralRe: WMI Win32_PingStatus address help Pin
Ryan Binns3-Mar-06 13:50
Ryan Binns3-Mar-06 13:50 
GeneralRe: WMI Win32_PingStatus address help Pin
viperlogic6-Mar-06 9:08
viperlogic6-Mar-06 9:08 
GeneralRe: WMI Win32_PingStatus address help Pin
viperlogic6-Mar-06 9:27
viperlogic6-Mar-06 9:27 
Questionreading a string from a file Pin
SWDevil2-Mar-06 5:33
SWDevil2-Mar-06 5:33 

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.