Click here to Skip to main content
15,867,834 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Why do functions in the C library have short names? Pin
dplong7-Sep-09 11:32
dplong7-Sep-09 11:32 
AnswerRe: Why do functions in the C library have short names? Pin
Richard MacCutchan7-Sep-09 11:33
mveRichard MacCutchan7-Sep-09 11:33 
AnswerRe: Why do functions in the C library have short names? Pin
Stuart Dootson7-Sep-09 14:45
professionalStuart Dootson7-Sep-09 14:45 
QuestionID_FILE_NEW causes application crashed [modified] Pin
transoft7-Sep-09 10:58
transoft7-Sep-09 10:58 
AnswerRe: ID_FILE_NEW causes application crashed Pin
Richard MacCutchan7-Sep-09 11:36
mveRichard MacCutchan7-Sep-09 11:36 
GeneralRe: ID_FILE_NEW causes application crashed Pin
transoft7-Sep-09 16:58
transoft7-Sep-09 16:58 
GeneralRe: ID_FILE_NEW causes application crashed Pin
Richard MacCutchan7-Sep-09 23:25
mveRichard MacCutchan7-Sep-09 23:25 
AnswerRe: ID_FILE_NEW causes application crashed Pin
SandipG 7-Sep-09 21:39
SandipG 7-Sep-09 21:39 
transoft wrote:
void CMainFrame::CMFileNewSetting()
{
////run dialog
PostMessage( WM_COMMAND, ID_FILE_NEW, (LPARAM)0);
.....
}


Probably you should handle WPARAM and LPARAM for the above message even if you do not need them.
This will cause crash in release builds. I am not sure if app.exe is in release build. I hope it helps.

[edit]
I missed following
transoft wrote:
After debugging, I found out that "PostMessage( WM_COMMAND, ID_FILE_NEW, (LPARAM)0);" cause the App.exe crashed.


You said you could run the exe properly using VS then how come you were able to reproduce the problem in VS?
Confused | :confused:

[/edit]

Regards,
Sandip.

GeneralRe: ID_FILE_NEW causes application crashed Pin
transoft8-Sep-09 2:12
transoft8-Sep-09 2:12 
AnswerRe: ID_FILE_NEW causes application crashed Pin
David Crow8-Sep-09 3:31
David Crow8-Sep-09 3:31 
GeneralRe: ID_FILE_NEW causes application crashed Pin
transoft8-Sep-09 3:50
transoft8-Sep-09 3:50 
GeneralRe: ID_FILE_NEW causes application crashed Pin
David Crow8-Sep-09 3:55
David Crow8-Sep-09 3:55 
GeneralRe: ID_FILE_NEW causes application crashed Pin
transoft8-Sep-09 4:24
transoft8-Sep-09 4:24 
GeneralRe: ID_FILE_NEW causes application crashed Pin
David Crow8-Sep-09 4:35
David Crow8-Sep-09 4:35 
GeneralRe: ID_FILE_NEW causes application crashed [modified] Pin
transoft8-Sep-09 4:33
transoft8-Sep-09 4:33 
QuestionResize an image without a Window Pin
GeeBru7-Sep-09 10:48
GeeBru7-Sep-09 10:48 
AnswerRe: Resize an image without a Window Pin
Richard MacCutchan7-Sep-09 10:52
mveRichard MacCutchan7-Sep-09 10:52 
GeneralRe: Resize an image without a Window Pin
GeeBru7-Sep-09 10:58
GeeBru7-Sep-09 10:58 
GeneralRe: Resize an image without a Window Pin
Richard MacCutchan7-Sep-09 11:42
mveRichard MacCutchan7-Sep-09 11:42 
AnswerRe: Resize an image without a Window Pin
Stuart Dootson7-Sep-09 14:50
professionalStuart Dootson7-Sep-09 14:50 
QuestionCalling CFrameWnd::RecalcLayout causes slight flicker in left pane (CTreeView) of outlook style splitter app Pin
Sternocera7-Sep-09 9:20
Sternocera7-Sep-09 9:20 
AnswerRe: Calling CFrameWnd::RecalcLayout causes slight flicker in left pane (CTreeView) of outlook style splitter app Pin
Richard MacCutchan7-Sep-09 10:56
mveRichard MacCutchan7-Sep-09 10:56 
GeneralRe: Calling CFrameWnd::RecalcLayout causes slight flicker in left pane (CTreeView) of outlook style splitter app Pin
Sternocera7-Sep-09 11:01
Sternocera7-Sep-09 11:01 
GeneralRe: Calling CFrameWnd::RecalcLayout causes slight flicker in left pane (CTreeView) of outlook style splitter app Pin
Richard MacCutchan7-Sep-09 11:26
mveRichard MacCutchan7-Sep-09 11:26 
QuestionHow to display SSL Certificate ? Pin
Member 38346307-Sep-09 7:42
Member 38346307-Sep-09 7:42 

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.