Click here to Skip to main content
15,918,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: hook the WM_PRINTCLIENT evenet Pin
code_discuss8-Apr-08 0:08
code_discuss8-Apr-08 0:08 
GeneralRe: hook the WM_PRINTCLIENT evenet Pin
micutzu8-Apr-08 0:27
micutzu8-Apr-08 0:27 
GeneralSystem Shutdwon Pin
john56327-Apr-08 23:58
john56327-Apr-08 23:58 
AnswerRe: System Shutdwon Pin
Rajesh R Subramanian8-Apr-08 3:43
professionalRajesh R Subramanian8-Apr-08 3:43 
QuestionRe: System Shutdwon Pin
David Crow8-Apr-08 3:58
David Crow8-Apr-08 3:58 
GeneralRe: System Shutdwon Pin
Hamid_RT8-Apr-08 22:05
Hamid_RT8-Apr-08 22:05 
Generalglobal and static object Pin
George_George7-Apr-08 23:40
George_George7-Apr-08 23:40 
GeneralRe: global and static object [modified] Pin
Matthew Faithfull8-Apr-08 0:23
Matthew Faithfull8-Apr-08 0:23 
Try this experiment and you will see.
Find or write some code like this

<br />
<br />
//.h<br />
class CSomeclass<br />
{<br />
  public:<br />
  static int MyMember;<br />
};<br />
<br />
//.cpp<br />
//PLACE A BREAKPOINT ON THE LINE BELOW<br />
int CSomeclass::MyMember = 42;<br />
<br />



Place a breakpoint on the assignment and also one at the beggining of your code, in main or InitiInstance or whatever.
Run under Debug and you may be surprised at what happens. When the debugger stop take a look at the call stack and the order in which the breakpoints are hit. Smile | :)
Bootstrapping an MSVC C++ program is about 10,000x more complex than most people realize.

Nothing is exactly what it seems but everything with seems can be unpicked.

modified on Tuesday, April 8, 2008 6:40 AM

GeneralRe: global and static object Pin
George_George8-Apr-08 4:21
George_George8-Apr-08 4:21 
GeneralRe: global and static object Pin
Matthew Faithfull8-Apr-08 4:39
Matthew Faithfull8-Apr-08 4:39 
GeneralRe: global and static object Pin
George_George8-Apr-08 22:10
George_George8-Apr-08 22:10 
GeneralRe: global and static object Pin
Matthew Faithfull9-Apr-08 3:07
Matthew Faithfull9-Apr-08 3:07 
GeneralRe: global and static object Pin
George_George9-Apr-08 3:43
George_George9-Apr-08 3:43 
GeneralRe: global and static object Pin
Matthew Faithfull9-Apr-08 3:59
Matthew Faithfull9-Apr-08 3:59 
GeneralRe: global and static object Pin
George_George9-Apr-08 15:19
George_George9-Apr-08 15:19 
GeneralRe: global and static object Pin
Matthew Faithfull10-Apr-08 6:21
Matthew Faithfull10-Apr-08 6:21 
GeneralRe: global and static object Pin
George_George10-Apr-08 15:40
George_George10-Apr-08 15:40 
AnswerRe: global and static object Pin
Matthew Faithfull10-Apr-08 23:52
Matthew Faithfull10-Apr-08 23:52 
GeneralRe: global and static object Pin
George_George11-Apr-08 22:40
George_George11-Apr-08 22:40 
GeneralPassing Continous Values between dialogs Pin
Chandrasekharan P7-Apr-08 23:26
Chandrasekharan P7-Apr-08 23:26 
GeneralRe: Passing Continous Values between dialogs Pin
Iain Clarke, Warrior Programmer7-Apr-08 23:29
Iain Clarke, Warrior Programmer7-Apr-08 23:29 
GeneralRe: Passing Continous Values between dialogs Pin
Hamid_RT8-Apr-08 22:00
Hamid_RT8-Apr-08 22:00 
GeneralProblem of resizing control. Pin
Le@rner7-Apr-08 21:37
Le@rner7-Apr-08 21:37 
GeneralRe: Problem of resizing control. Pin
Iain Clarke, Warrior Programmer7-Apr-08 23:01
Iain Clarke, Warrior Programmer7-Apr-08 23:01 
GeneralRe: Problem of resizing control. Pin
Hamid_RT8-Apr-08 21:58
Hamid_RT8-Apr-08 21:58 

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.