Click here to Skip to main content
15,917,862 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to display a 24 bit bitmap on a SDI View Pin
Parthi_Appu10-Jul-06 21:21
Parthi_Appu10-Jul-06 21:21 
QuestionRegarding memory Pin
voorugonda prashanth10-Jul-06 19:20
voorugonda prashanth10-Jul-06 19:20 
AnswerRe: Regarding memory Pin
Code_Zombie10-Jul-06 19:39
Code_Zombie10-Jul-06 19:39 
GeneralRe: Regarding memory Pin
voorugonda prashanth10-Jul-06 20:01
voorugonda prashanth10-Jul-06 20:01 
GeneralRe: Regarding memory Pin
Jonathan [Darka]10-Jul-06 23:16
professionalJonathan [Darka]10-Jul-06 23:16 
GeneralRe: Regarding memory Pin
Jun Du11-Jul-06 3:42
Jun Du11-Jul-06 3:42 
Question_wrename ( ) somehow deletes the already existing file in the file system Pin
cathy_d'souza10-Jul-06 19:20
cathy_d'souza10-Jul-06 19:20 
AnswerRe: _wrename ( ) somehow deletes the already existing file in the file system Pin
Parthi_Appu10-Jul-06 21:31
Parthi_Appu10-Jul-06 21:31 
GeneralRe: _wrename ( ) somehow deletes the already existing file in the file system Pin
cathy_d'souza10-Jul-06 21:35
cathy_d'souza10-Jul-06 21:35 
QuestionDoubt regarding the Hook Pin
Member 303984310-Jul-06 18:31
Member 303984310-Jul-06 18:31 
AnswerRe: Doubt regarding the Hook Pin
FarPointer10-Jul-06 18:36
FarPointer10-Jul-06 18:36 
AnswerRe: Doubt regarding the Hook Pin
Abhi Lahare10-Jul-06 18:37
Abhi Lahare10-Jul-06 18:37 
AnswerRe: Doubt regarding the Hook Pin
Code_Zombie10-Jul-06 19:19
Code_Zombie10-Jul-06 19:19 
AnswerRe: Doubt regarding the Hook Pin
Hamid_RT10-Jul-06 20:27
Hamid_RT10-Jul-06 20:27 
Questionexample Pin
thathvamsi10-Jul-06 18:02
thathvamsi10-Jul-06 18:02 
AnswerRe: example Pin
Steve Echols10-Jul-06 18:19
Steve Echols10-Jul-06 18:19 
AnswerRe: example Pin
ThatsAlok10-Jul-06 19:09
ThatsAlok10-Jul-06 19:09 
AnswerRe: example Pin
Code_Zombie10-Jul-06 19:58
Code_Zombie10-Jul-06 19:58 
AnswerRe: example Pin
Hamid_RT10-Jul-06 20:19
Hamid_RT10-Jul-06 20:19 
GeneralRe: example Pin
thathvamsi10-Jul-06 20:31
thathvamsi10-Jul-06 20:31 
GeneralRe: example Pin
ThatsAlok10-Jul-06 22:50
ThatsAlok10-Jul-06 22:50 
QuestionDerived class from abstract class(COleControl in MFC) gave error while allocation memory Pin
dashprasannajit10-Jul-06 17:31
dashprasannajit10-Jul-06 17:31 
AnswerRe: Derived class from abstract class(COleControl in MFC) gave error while allocation memory Pin
Steve Echols10-Jul-06 18:29
Steve Echols10-Jul-06 18:29 
Question[Noob question] Reading a file gives me weird Y chars? Pin
Lord Kixdemp10-Jul-06 16:19
Lord Kixdemp10-Jul-06 16:19 
Hello everyone!
Look at my code:

int Interface::InitScreen()<br />
{<br />
    // Open main UI screen<br />
    ifstream mainUIScreen((string(".\\") + string(DIR_SCREENS) + string("mainui.asc")).c_str());<br />
    ofstream mainUIScreen_Edit((string(".\\") + string(DIR_SCREENS) + string("mainui_edited.asc")).c_str());<br />
<br />
    // Exit if on error<br />
    if (!mainUIScreen.is_open())<br />
    {<br />
        MessageBox(NULL, "Cannot open program file 'mainui.asc'!", "Error",<br />
            MB_OK | MB_ICONEXCLAMATION);<br />
        exit(-1);<br />
    }<br />
<br />
    // Exit if on error<br />
    if (!mainUIScreen.good())<br />
    {<br />
        MessageBox(NULL, "Cannot open program file 'mainui.asc'!", "Error",<br />
            MB_OK | MB_ICONEXCLAMATION);<br />
        exit(-1);<br />
    }<br />
<br />
    char c;<br />
    for (int x = 0; x < WIDTH*HEIGHT; x++)<br />
    {<br />
        c = mainUIScreen.peek();<br />
        mainUIScreen_Edit.put(c);<br />
    }


When I open the output file (mainui_edited.asc), I get a bunch of 0x98's instead of the chars I want... Why is that? Thanks!

Windows Calculator told me I will die at 28. Frown | :(
AnswerRe: [Noob question] Reading a file gives me weird Y chars? Pin
Lord Kixdemp13-Jul-06 11:51
Lord Kixdemp13-Jul-06 11:51 

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.