Click here to Skip to main content
15,908,673 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioninteger/ character Pin
cuteee2-Mar-06 7:20
cuteee2-Mar-06 7:20 
AnswerRe: integer/ character Pin
David Crow2-Mar-06 7:51
David Crow2-Mar-06 7:51 
QuestionRe: integer/ character Pin
cuteee2-Mar-06 8:07
cuteee2-Mar-06 8:07 
AnswerRe: integer/ character Pin
David Crow2-Mar-06 8:24
David Crow2-Mar-06 8:24 
QuestionCalling .exe withing project. Pin
CodeGoose2-Mar-06 6:59
CodeGoose2-Mar-06 6:59 
AnswerRe: Calling .exe withing project. Pin
Brett Peirce2-Mar-06 7:10
Brett Peirce2-Mar-06 7:10 
AnswerRe: Calling .exe withing project. Pin
David Crow2-Mar-06 7:47
David Crow2-Mar-06 7:47 
Questionhelp plz Pin
mechalien2-Mar-06 6:43
mechalien2-Mar-06 6:43 
AnswerRe: help plz Pin
Maximilien2-Mar-06 6:52
Maximilien2-Mar-06 6:52 
AnswerRe: help plz Pin
Peter Charlesworth2-Mar-06 9:40
Peter Charlesworth2-Mar-06 9:40 
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 

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.