Click here to Skip to main content
15,888,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: How to repeat call to MapViewOfFile with a different range on a file, to write bigger buffer.? Pin
G Haranadh14-Nov-11 21:45
G Haranadh14-Nov-11 21:45 
Questionwin32 Listbox 101, Get Selected Value Pin
jkirkerx9-Nov-11 15:15
professionaljkirkerx9-Nov-11 15:15 
QuestionRe: win32 Listbox 101, Get Selected Value Pin
David Crow9-Nov-11 17:28
David Crow9-Nov-11 17:28 
AnswerRe: win32 Listbox 101, Get Selected Value Pin
jkirkerx10-Nov-11 5:27
professionaljkirkerx10-Nov-11 5:27 
AnswerRe: win32 Listbox 101, Get Selected Value Pin
jkirkerx10-Nov-11 5:45
professionaljkirkerx10-Nov-11 5:45 
GeneralRe: win32 Listbox 101, Get Selected Value Pin
David Crow10-Nov-11 5:50
David Crow10-Nov-11 5:50 
GeneralRe: win32 Listbox 101, Get Selected Value Pin
jkirkerx10-Nov-11 6:43
professionaljkirkerx10-Nov-11 6:43 
QuestionMFC new should throw Pin
bob169729-Nov-11 11:42
bob169729-Nov-11 11:42 
Why is it that the Visual C++ 2008 MFC DOC/View based wizard creates an application class InitInstance with the following code checking the result of new being used to dynamically create a CObject derived frame window?
I was under the impression that MFC new would throw on failure

C#
// create main MDI Frame window
CMainFrame* pMainFrame = new CMainFrame;
if (!pMainFrame || !pMainFrame->LoadFrame(IDR_MAINFRAME))
{
    delete pMainFrame;
    return FALSE;
}

AnswerRe: MFC new should throw Pin
Chris Losinger9-Nov-11 15:07
professionalChris Losinger9-Nov-11 15:07 
AnswerRe: MFC new should throw Pin
Richard MacCutchan9-Nov-11 22:33
mveRichard MacCutchan9-Nov-11 22:33 
GeneralRe: MFC new should throw Pin
bob1697210-Nov-11 3:49
bob1697210-Nov-11 3:49 
GeneralRe: MFC new should throw Pin
Richard MacCutchan10-Nov-11 6:21
mveRichard MacCutchan10-Nov-11 6:21 
GeneralRe: MFC new should throw Pin
bob1697210-Nov-11 7:28
bob1697210-Nov-11 7:28 
GeneralRe: MFC new should throw Pin
Richard MacCutchan10-Nov-11 11:27
mveRichard MacCutchan10-Nov-11 11:27 
GeneralRe: MFC new should throw Pin
bob1697210-Nov-11 15:56
bob1697210-Nov-11 15:56 
AnswerRe: MFC new should throw Pin
Chuck O'Toole10-Nov-11 16:41
Chuck O'Toole10-Nov-11 16:41 
GeneralRe: MFC new should throw Pin
bob1697210-Nov-11 21:11
bob1697210-Nov-11 21:11 
AnswerRe: MFC new should throw Pin
Chuck O'Toole11-Nov-11 1:57
Chuck O'Toole11-Nov-11 1:57 
GeneralRe: MFC new should throw Pin
bob1697211-Nov-11 14:53
bob1697211-Nov-11 14:53 
GeneralRe: MFC new should throw Pin
Richard MacCutchan10-Nov-11 21:32
mveRichard MacCutchan10-Nov-11 21:32 
GeneralRe: MFC new should throw Pin
bob1697211-Nov-11 15:01
bob1697211-Nov-11 15:01 
AnswerRe: MFC new should throw Pin
Stefan_Lang10-Nov-11 2:13
Stefan_Lang10-Nov-11 2:13 
GeneralRe: MFC new should throw Pin
Orjan Westin10-Nov-11 3:28
professionalOrjan Westin10-Nov-11 3:28 
GeneralRe: MFC new should throw Pin
Stefan_Lang10-Nov-11 3:35
Stefan_Lang10-Nov-11 3:35 
Questiondev-c++ Pin
RealHigh9-Nov-11 9:25
RealHigh9-Nov-11 9:25 

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.