Click here to Skip to main content
15,915,093 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Static variable Pin
AnithaSubramani23-Jul-08 5:33
AnithaSubramani23-Jul-08 5:33 
GeneralRe: Static variable Pin
Mark Salsbery23-Jul-08 6:25
Mark Salsbery23-Jul-08 6:25 
GeneralRe: Static variable Pin
Alan Balkany23-Jul-08 7:38
Alan Balkany23-Jul-08 7:38 
GeneralRe: Static variable Pin
Mark Salsbery23-Jul-08 8:08
Mark Salsbery23-Jul-08 8:08 
GeneralRe: Static variable Pin
Alan Balkany23-Jul-08 8:11
Alan Balkany23-Jul-08 8:11 
GeneralRe: Static variable Pin
Mark Salsbery23-Jul-08 8:13
Mark Salsbery23-Jul-08 8:13 
GeneralRe: Static variable Pin
Alan Balkany23-Jul-08 8:18
Alan Balkany23-Jul-08 8:18 
GeneralRe: Static variable Pin
Mark Salsbery23-Jul-08 8:54
Mark Salsbery23-Jul-08 8:54 
Right. I never said it was good. Every language has its trade-offs.

This particular case has always been the case. Had the C++ designer(s) let the
compiler choose where to create the instance, there's would be a whole lot
of us whining because we don't have control over the storage of our variables.

I use C++ for the low level control. I understand how objects exist and where, and
I take advantage of the control I have over that. So to me it is not counter-intuitive
to have to explicitly state where an object is stored. For times I don't care, I'll use
a higher level language - C# works just fine Smile | :)

The whole "static" thing in itself is kind of an abomination itself - mixing linkage with compilation.

Cheers,
Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Static variable Pin
Alan Balkany23-Jul-08 9:00
Alan Balkany23-Jul-08 9:00 
GeneralRe: Static variable Pin
Mark Salsbery23-Jul-08 9:06
Mark Salsbery23-Jul-08 9:06 
QuestionRe: Static variable Pin
David Crow23-Jul-08 5:04
David Crow23-Jul-08 5:04 
AnswerRe: Static variable Pin
AnithaSubramani23-Jul-08 5:34
AnithaSubramani23-Jul-08 5:34 
AnswerRe: Static variable Pin
Mark Salsbery23-Jul-08 6:26
Mark Salsbery23-Jul-08 6:26 
GeneralRe: Static variable Pin
David Crow23-Jul-08 6:28
David Crow23-Jul-08 6:28 
Question64bit PKWare Compatible Compression Library Pin
Steve Thresher23-Jul-08 4:40
Steve Thresher23-Jul-08 4:40 
QuestionUsing Static Lib For Creating the MFC Controls Pin
lavate malllik23-Jul-08 4:29
lavate malllik23-Jul-08 4:29 
AnswerRe: Using Static Lib For Creating the MFC Controls Pin
Mark Salsbery23-Jul-08 6:30
Mark Salsbery23-Jul-08 6:30 
GeneralRe: Using Static Lib For Creating the MFC Controls Pin
lavate malllik23-Jul-08 18:49
lavate malllik23-Jul-08 18:49 
Questiondecimal separator Pin
jeremie.delaitre23-Jul-08 4:04
jeremie.delaitre23-Jul-08 4:04 
AnswerRe: decimal separator Pin
led mike23-Jul-08 4:36
led mike23-Jul-08 4:36 
GeneralRe: decimal separator Pin
jeremie.delaitre23-Jul-08 4:54
jeremie.delaitre23-Jul-08 4:54 
GeneralRe: decimal separator Pin
led mike23-Jul-08 5:58
led mike23-Jul-08 5:58 
QuestionTrackMouse Event Pin
bhanu_850923-Jul-08 3:06
bhanu_850923-Jul-08 3:06 
AnswerRe: TrackMouse Event Pin
enhzflep23-Jul-08 6:00
enhzflep23-Jul-08 6:00 
QuestionHow to handle New Vertical Tab of Window Menu in VS2005 Pin
am 200923-Jul-08 3:06
am 200923-Jul-08 3:06 

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.