Click here to Skip to main content
16,008,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhere can I get network programming sample codes? Pin
George210-Nov-02 1:17
George210-Nov-02 1:17 
AnswerRe: Where can I get network programming sample codes? Pin
georgiek5010-Nov-02 4:40
georgiek5010-Nov-02 4:40 
GeneralRe: Where can I get network programming sample codes? Pin
George210-Nov-02 19:35
George210-Nov-02 19:35 
AnswerRe: Where can I get network programming sample codes? Pin
valikac10-Nov-02 5:32
valikac10-Nov-02 5:32 
GeneralRe: Where can I get network programming sample codes? Pin
George210-Nov-02 19:37
George210-Nov-02 19:37 
Generaldebug exit codes Pin
Steve L.9-Nov-02 23:23
Steve L.9-Nov-02 23:23 
GeneralAccelerators in a Dialog Application (non-MFC) Pin
cleathley9-Nov-02 21:24
cleathley9-Nov-02 21:24 
GeneralRe: Accelerators in a Dialog Application (non-MFC) Pin
georgiek5010-Nov-02 2:40
georgiek5010-Nov-02 2:40 
Have you tried changing your message loop to:

while (GetMessage(&msg, NULL, 0, 0))
{
if (!TranslateAccelerator(hwnd, hAccel, &msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}

I haven't actually written any apps with a pure dialog but this is what works for the other ones, and if it is a modeless dialog box then the same but you also need:

while (Getmessage...like above
{
if (hDlgModeless == 0 || !IsDialogMessage(hDlgModeless, &msg))
{
if (!Translate...like above
{
}
}
}

This is straight from Petzold's book...page 522. Hope this helps.
GeneralDLL problem Pin
Anatari9-Nov-02 18:11
Anatari9-Nov-02 18:11 
GeneralRe: DLL problem Pin
moliate9-Nov-02 20:46
moliate9-Nov-02 20:46 
GeneralWeird heap problem in WinXP Pin
Yanuar9-Nov-02 16:29
Yanuar9-Nov-02 16:29 
QuestionHTML Help(*.chm) Parameters? Pin
Abin9-Nov-02 16:33
Abin9-Nov-02 16:33 
AnswerNever mind, I found it out Pin
Abin9-Nov-02 18:36
Abin9-Nov-02 18:36 
GeneralRe: Never mind, I found it out Pin
Dominik Reichl10-Nov-02 4:39
Dominik Reichl10-Nov-02 4:39 
GeneralRe: Never mind, I found it out Pin
Abin10-Nov-02 5:33
Abin10-Nov-02 5:33 
GeneralRe: Never mind, I found it out Pin
Dominik Reichl10-Nov-02 9:41
Dominik Reichl10-Nov-02 9:41 
GeneralRunning a function as the dialog starts Pin
carrie9-Nov-02 9:45
carrie9-Nov-02 9:45 
GeneralRe: Running a function as the dialog starts Pin
Stephane Rodriguez.9-Nov-02 9:59
Stephane Rodriguez.9-Nov-02 9:59 
GeneralRe: Running a function as the dialog starts Pin
carrie9-Nov-02 11:17
carrie9-Nov-02 11:17 
GeneralRe: Running a function as the dialog starts Pin
Stephane Rodriguez.9-Nov-02 11:30
Stephane Rodriguez.9-Nov-02 11:30 
GeneralRe: Running a function as the dialog starts Pin
Michael Dunn9-Nov-02 12:03
sitebuilderMichael Dunn9-Nov-02 12:03 
GeneralRe: Running a function as the dialog starts Pin
carrie9-Nov-02 12:06
carrie9-Nov-02 12:06 
QuestionRegistry - How to write in HKEY_LOCAL_MACHINE section? Pin
julych9-Nov-02 9:31
julych9-Nov-02 9:31 
AnswerRe: Registry - How to write in HKEY_LOCAL_MACHINE section? Pin
Stephane Rodriguez.9-Nov-02 10:00
Stephane Rodriguez.9-Nov-02 10:00 
GeneralRe: Registry - How to write in HKEY_LOCAL_MACHINE section? Pin
julych9-Nov-02 10:26
julych9-Nov-02 10:26 

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.