Click here to Skip to main content
15,884,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
Questionwhat is the shadow in clinet area Pin
_Pinux_30-Nov-07 5:00
_Pinux_30-Nov-07 5:00 
AnswerRe: what is the shadow in clinet area Pin
Iain Clarke, Warrior Programmer30-Nov-07 6:27
Iain Clarke, Warrior Programmer30-Nov-07 6:27 
QuestionBitBlt mystery problem Pin
csmanul30-Nov-07 4:40
csmanul30-Nov-07 4:40 
QuestionRe: BitBlt mystery problem Pin
Mark Salsbery30-Nov-07 9:46
Mark Salsbery30-Nov-07 9:46 
AnswerRe: BitBlt mystery problem Pin
csmanul30-Nov-07 11:58
csmanul30-Nov-07 11:58 
GeneralRe: BitBlt mystery problem Pin
Mark Salsbery30-Nov-07 12:12
Mark Salsbery30-Nov-07 12:12 
GeneralRe: BitBlt mystery problem Pin
csmanul30-Nov-07 12:58
csmanul30-Nov-07 12:58 
GeneralRe: BitBlt mystery problem Pin
Mark Salsbery30-Nov-07 13:18
Mark Salsbery30-Nov-07 13:18 
GeneralRe: BitBlt mystery problem Pin
Mark Salsbery30-Nov-07 13:28
Mark Salsbery30-Nov-07 13:28 
GeneralRe: BitBlt mystery problem Pin
csmanul30-Nov-07 13:38
csmanul30-Nov-07 13:38 
GeneralRe: BitBlt mystery problem Pin
Mark Salsbery30-Nov-07 13:46
Mark Salsbery30-Nov-07 13:46 
GeneralRe: BitBlt mystery problem Pin
csmanul30-Nov-07 13:55
csmanul30-Nov-07 13:55 
QuestionDial up connection on Vista Pin
Sonani Prakash30-Nov-07 4:31
Sonani Prakash30-Nov-07 4:31 
Questionruntime library option Pin
George_George30-Nov-07 3:47
George_George30-Nov-07 3:47 
AnswerRe: runtime library option Pin
CPallini30-Nov-07 3:56
mveCPallini30-Nov-07 3:56 
GeneralRe: runtime library option Pin
Matthew Faithfull30-Nov-07 4:23
Matthew Faithfull30-Nov-07 4:23 

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.