Click here to Skip to main content
       

C / C++ / MFC

 
QuestionHow to stop typing in CDateTimeCtrl in MFC Pinmemberrahul.kulshreshtha7-Nov-12 16:47 
AnswerRe: How to stop typing in CDateTimeCtrl in MFC PinmemberJochen Arndt7-Nov-12 23:32 
GeneralRe: How to stop typing in CDateTimeCtrl in MFC Pinmemberrahul.kulshreshtha8-Nov-12 5:52 
GeneralRe: How to stop typing in CDateTimeCtrl in MFC PinmemberJochen Arndt8-Nov-12 6:32 
Question[MFC] How to save three ini files as zip file? Pingroupyu-jian7-Nov-12 5:20 
AnswerRe: [MFC] How to save three ini files as zip file? Pinmemberjeron17-Nov-12 6:17 
AnswerRe: [MFC] How to save three ini files as zip file? PinmemberProgramFOX7-Nov-12 7:35 
QuestionWhy new Image failed? Pingroupyu-jian7-Nov-12 4:06 
<pre lang="c++">
        Image*  m_pImage;
    CString  strTempIMGPath = m_strCurrentImagePath;
    wchar_t szFile[256] = {0};
 
    char *pStr = strTempIMGPath.GetBuffer(0);
    int size = MultiByteToWideChar(GetACP(), 0, pStr, -1, NULL, 0);
    MultiByteToWideChar(GetACP(), 0, pStr, -1, szFile, size);
    strTempIMGPath.ReleaseBuffer();
    if (m_pImage != NULL)
    {
        delete m_pImage;
        m_pImage = NULL;
    }
<b> m_pImage = new Image(szFile, FALSE);</b>
    if(m_pImage->
 
After this statement,m_pImage = new Image(szFile, FALSE)
the m_pImage is NULL, I do not know why create Image failed, after debug that I find that the szFile is a right PNG image file path.
 
The last code used in a CDialog form, I use the CDialog::DoModel() to show this dialog in the
CMyApp::InitInstance()
I do not know whether I use this class Image too early, or I need use some code to initialize the GDI+ library?
AnswerRe: Why new Image failed? PinmemberAndrew Cherednik7-Nov-12 12:12 
AnswerRe: Why new Image failed? PinmemberSanthosh G_7-Nov-12 12:59 
GeneralRe: Why new Image failed? Pingroupyu-jian15-Nov-12 16:41 
QuestionDialogBox fail in XP PinmemberWilliam Engberts7-Nov-12 3:32 
QuestionRe: DialogBox fail in XP PinmvpCPallini7-Nov-12 10:06 
AnswerRe: DialogBox fail in XP PinmemberAndrew Cherednik7-Nov-12 12:20 
GeneralRe: DialogBox fail in XP PinmemberWilliam Engberts7-Nov-12 22:36 
SuggestionRe: DialogBox fail in XP PinmemberAndrew Cherednik7-Nov-12 22:59 
GeneralRe: DialogBox fail in XP PinmemberWilliam Engberts7-Nov-12 23:30 
QuestionRe: DialogBox fail in XP PinmemberDavidCrow8-Nov-12 4:21 
AnswerRe: DialogBox fail in XP PinmemberWilliam Engberts8-Nov-12 5:00 
QuestionAdo problem Pinmemberluckyty6-Nov-12 22:27 
Questionhow I can allow user draw curve using mouse PinmemberMember 94819416-Nov-12 7:06 
AnswerRe: how I can allow user draw curve using mouse PinmemberStephen Dycus6-Nov-12 7:58 
Questionhow to call a dll indipendent of path where it located in a system? [modified] Pinmemberlitu kumar6-Nov-12 0:52 
AnswerRe: how to call a dll indipendent of path where it located in a system? Pinmemberjschell6-Nov-12 9:13 
GeneralRe: how to call a dll indipendent of path where it located in a system? [modified] Pinmemberlitu kumar6-Nov-12 18:02 

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

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


Advertise | Privacy | Mobile
Web02 | 2.8.140905.1 | Last Updated 15 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid