Click here to Skip to main content
15,919,422 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Hmm, not sure, are you linking to the C Runtime, MSVCRT.dll or that static lib equivalent. You can find out by looking at the value of CSomeclass::MyMember when main() gets called if it's not 42 then static initialization is not being called hence it's reasonable it won't let you set a breakpoint on a line that's never called. Try changing from a CONSOLE subsystem app to a WINDOWS subsystem app as well as that makes a differenece to the entry point used. You'll need a WinMain function to get a raw windows app off the ground without MFC. If you have a look in your equivalent of
C:\Program Files\Microsoft Visual Studio 8\VC\crt\src\crtexe.c
, assuming you installed it, you'll see the code that actually runs when you application starts up. The call to _initterm( __xc_a, __xc_z ) at around Line 512 is where your static class members like CSomeclass::MyMember.
Please don't ask me to explain it. It's 'for reference only'. Smile | :)

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

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 
QuestionMFC Architecture....!!!!??? Pin
nisha000007-Apr-08 20:26
nisha000007-Apr-08 20:26 
AnswerRe: MFC Architecture....!!!!??? Pin
Cedric Moonen7-Apr-08 21:10
Cedric Moonen7-Apr-08 21:10 

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.