Click here to Skip to main content
15,913,944 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSynchronising Computerson a Small Network Pin
Bram van Kampen30-Nov-07 15:23
Bram van Kampen30-Nov-07 15:23 
GeneralRe: Synchronising Computerson a Small Network Pin
James R. Twine10-Mar-08 5:02
James R. Twine10-Mar-08 5:02 
GeneralRe: Synchronising Computerson a Small Network Pin
Bram van Kampen11-Mar-08 12:28
Bram van Kampen11-Mar-08 12:28 
GeneralRe: Synchronising Computerson a Small Network Pin
James R. Twine11-Mar-08 14:22
James R. Twine11-Mar-08 14:22 
Questionkey - information - map Pin
james_dixon_200830-Nov-07 15:11
james_dixon_200830-Nov-07 15:11 
QuestionCreating a CPropertySheet-based app Pin
Dr Dan30-Nov-07 11:32
Dr Dan30-Nov-07 11:32 
QuestionRe: Creating a CPropertySheet-based app Pin
Mark Salsbery30-Nov-07 12:17
Mark Salsbery30-Nov-07 12:17 
AnswerRe: Creating a CPropertySheet-based app Pin
Dr Dan30-Nov-07 22:34
Dr Dan30-Nov-07 22:34 
AnswerRe: Creating a CPropertySheet-based app Pin
Moak30-Nov-07 14:09
Moak30-Nov-07 14:09 
AnswerRe: Creating a CPropertySheet-based app Pin
Alain Rist30-Nov-07 21:50
Alain Rist30-Nov-07 21:50 
QuestionFailed to create empty document Pin
RomTibi30-Nov-07 10:12
RomTibi30-Nov-07 10:12 
QuestionRe: Failed to create empty document Pin
David Crow30-Nov-07 10:45
David Crow30-Nov-07 10:45 
AnswerRe: Failed to create empty document Pin
RomTibi30-Nov-07 19:45
RomTibi30-Nov-07 19:45 
QuestionSet up dimensions Pin
Schehaider_Aymen30-Nov-07 10:00
Schehaider_Aymen30-Nov-07 10:00 
AnswerRe: Set up dimensions Pin
followait30-Nov-07 18:26
followait30-Nov-07 18:26 
GeneralRe: Set up dimensions [modified] Pin
Schehaider_Aymen30-Nov-07 22:18
Schehaider_Aymen30-Nov-07 22:18 
GeneralRe: Set up dimensions Pin
CPallini1-Dec-07 0:22
mveCPallini1-Dec-07 0:22 
GeneralRe: Set up dimensions [modified] Pin
Schehaider_Aymen1-Dec-07 0:32
Schehaider_Aymen1-Dec-07 0:32 
QuestionCode works when debugging and not when executing Pin
Spykraft30-Nov-07 9:20
Spykraft30-Nov-07 9:20 
AnswerRe: Code works when debugging and not when executing Pin
Randor 30-Nov-07 9:44
professional Randor 30-Nov-07 9:44 
GeneralRe: Code works when debugging and not when executing Pin
Spykraft30-Nov-07 10:41
Spykraft30-Nov-07 10:41 
AnswerRe: Code works when debugging and not when executing Pin
peterchen30-Nov-07 9:56
peterchen30-Nov-07 9:56 
GeneralRe: Code works when debugging and not when executing Pin
Spykraft30-Nov-07 10:44
Spykraft30-Nov-07 10:44 
GeneralRe: Code works when debugging and not when executing Pin
peterchen1-Dec-07 3:20
peterchen1-Dec-07 3:20 
You are working at different memory locations depending on running under the debugger or as standalone (even ctrl+F5 vs. double-clicking the exe can show differences...). Normally, in debug builds, memory locations are initilized to the same value, but there are loopholes.

Did you check the return value of SendDlgItemMessage?
Also, there are some patterns to avoid or use when sending messages, especially when focus involved, e.g. changing focus during a focus change message never works correctly.

When running under the debugger step by step, your application will get (and handle) additional killfocus and setfocus messages. Which might at least explain the difference.



We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
My first real C# project | Linkify!|FoldWithUs! | sighist

AnswerRe: Code works when debugging and not when executing Pin
ied30-Nov-07 12:27
ied30-Nov-07 12:27 

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.