Click here to Skip to main content
15,798,200 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question[MFC] How to save three ini files as zip file? Pin
yu-jian7-Nov-12 6:20
yu-jian7-Nov-12 6:20 
AnswerRe: [MFC] How to save three ini files as zip file? Pin
jeron17-Nov-12 7:17
jeron17-Nov-12 7:17 
AnswerRe: [MFC] How to save three ini files as zip file? Pin
Thomas Daniels7-Nov-12 8:35
mentorThomas Daniels7-Nov-12 8:35 
QuestionWhy new Image failed? Pin
yu-jian7-Nov-12 5:06
yu-jian7-Nov-12 5:06 
AnswerRe: Why new Image failed? Pin
chaau7-Nov-12 13:12
chaau7-Nov-12 13:12 
AnswerRe: Why new Image failed? Pin
Santhosh G_7-Nov-12 13:59
Santhosh G_7-Nov-12 13:59 
GeneralRe: Why new Image failed? Pin
yu-jian15-Nov-12 17:41
yu-jian15-Nov-12 17:41 
QuestionDialogBox fail in XP Pin
William Engberts7-Nov-12 4:32
William Engberts7-Nov-12 4:32 
Hi everybody,

I have a console application, that create a dialog box to show a progress bar. This has worked fine for years (it started as a Visual Studio 6 project, then I migrated it to Studio 2005) Now, I have migrated it to Studio 2010. It still works fine under Windows 7, but under XP, the dialog box returns -1, with a GetLastError() of 0. When I look at the messages sent to the dialog box, then I see WM_SETFONT, followed by WM_DESTROY and WM_NCDESTROY. I call it as

DialogBox (hInstance, MAKEINTRESOURCE (IDD_MAPPER), HWND_DESKTOP, DialogProc), where DialogProc is defined as

INT_PTR CALLBACK DialogProc(HWND, UINT, WPARAM, LPARAM);

Like I said: it all worked fine and still does in Windows 7, but XP does not seem to co-operate anymore.

Anybody any ideas? Would be grately appreciated!

Thanks in advance,
William
QuestionRe: DialogBox fail in XP Pin
CPallini7-Nov-12 11:06
mveCPallini7-Nov-12 11:06 
AnswerRe: DialogBox fail in XP Pin
chaau7-Nov-12 13:20
chaau7-Nov-12 13:20 
GeneralRe: DialogBox fail in XP Pin
William Engberts7-Nov-12 23:36
William Engberts7-Nov-12 23:36 
SuggestionRe: DialogBox fail in XP Pin
chaau7-Nov-12 23:59
chaau7-Nov-12 23:59 
GeneralRe: DialogBox fail in XP Pin
William Engberts8-Nov-12 0:30
William Engberts8-Nov-12 0:30 
QuestionRe: DialogBox fail in XP Pin
David Crow8-Nov-12 5:21
David Crow8-Nov-12 5:21 
AnswerRe: DialogBox fail in XP Pin
William Engberts8-Nov-12 6:00
William Engberts8-Nov-12 6:00 
QuestionAdo problem Pin
luckyty6-Nov-12 23:27
luckyty6-Nov-12 23:27 
Questionhow I can allow user draw curve using mouse Pin
Member 94819416-Nov-12 8:06
Member 94819416-Nov-12 8:06 
AnswerRe: how I can allow user draw curve using mouse Pin
Stephen Dycus6-Nov-12 8:58
professionalStephen Dycus6-Nov-12 8:58 
Questionhow to call a dll indipendent of path where it located in a system? Pin
litu kumar6-Nov-12 1:52
litu kumar6-Nov-12 1:52 
AnswerRe: how to call a dll indipendent of path where it located in a system? Pin
jschell6-Nov-12 10:13
jschell6-Nov-12 10:13 
GeneralRe: how to call a dll indipendent of path where it located in a system? Pin
litu kumar6-Nov-12 19:02
litu kumar6-Nov-12 19:02 
GeneralRe: how to call a dll indipendent of path where it located in a system? Pin
jschell7-Nov-12 8:51
jschell7-Nov-12 8:51 
QuestionVery happy with C++11 Pin
User 5838525-Nov-12 17:33
User 5838525-Nov-12 17:33 
AnswerRe: Very happy with C++11 Pin
Sarath C5-Nov-12 20:01
Sarath C5-Nov-12 20:01 
AnswerRe: Very happy with C++11 Pin
Richard MacCutchan5-Nov-12 23:25
mveRichard MacCutchan5-Nov-12 23: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.