Click here to Skip to main content
15,905,071 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: access variable from another file Pin
ptr_Electron1-Apr-08 22:42
ptr_Electron1-Apr-08 22:42 
GeneralRe: access variable from another file Pin
CPallini1-Apr-08 23:04
mveCPallini1-Apr-08 23:04 
GeneralRe: access variable from another file Pin
Nemanja Trifunovic28-Mar-08 4:15
Nemanja Trifunovic28-Mar-08 4:15 
GeneralRe: access variable from another file Pin
CPallini28-Mar-08 4:23
mveCPallini28-Mar-08 4:23 
GeneralRe: access variable from another file Pin
Matthew Faithfull28-Mar-08 4:50
Matthew Faithfull28-Mar-08 4:50 
GeneralRe: access variable from another file Pin
Nemanja Trifunovic28-Mar-08 5:03
Nemanja Trifunovic28-Mar-08 5:03 
GeneralRe: access variable from another file Pin
Matthew Faithfull28-Mar-08 5:20
Matthew Faithfull28-Mar-08 5:20 
GeneralRe: access variable from another file Pin
Nemanja Trifunovic28-Mar-08 7:18
Nemanja Trifunovic28-Mar-08 7:18 
Matthew Faithfull wrote:
Of course all non const globals should in fact be data hiding objects that are inherently thread safe but you already knew that.


Even if they are thread-safe in the sense they are protected by locks, it can badly hurt the performance, but it really depends on the design - a queue may help, for instance.


Matthew Faithfull wrote:
I used static instances of classes as private: members quite often and they can't really be said to be global because they can only be accessed from instances of the
particular class


You're right, - I should have said "public static", instead of just "static". Private static are really similar to static variables at the file level in C.


GeneralRe: access variable from another file Pin
CPallini28-Mar-08 5:21
mveCPallini28-Mar-08 5:21 
GeneralRe: access variable from another file Pin
Nemanja Trifunovic28-Mar-08 7:19
Nemanja Trifunovic28-Mar-08 7:19 
GeneralRe: access variable from another file Pin
CPallini28-Mar-08 5:03
mveCPallini28-Mar-08 5:03 
JokeRe: access variable from another file Pin
Matthew Faithfull28-Mar-08 5:21
Matthew Faithfull28-Mar-08 5:21 
GeneralRe: access variable from another file Pin
CPallini28-Mar-08 5:42
mveCPallini28-Mar-08 5:42 
GeneralRe: access variable from another file Pin
toxcct28-Mar-08 5:43
toxcct28-Mar-08 5:43 
GeneralRe: access variable from another file Pin
CPallini28-Mar-08 5:48
mveCPallini28-Mar-08 5:48 
GeneralRe: access variable from another file Pin
toxcct28-Mar-08 5:54
toxcct28-Mar-08 5:54 
GeneralRe: access variable from another file Pin
CPallini28-Mar-08 5:59
mveCPallini28-Mar-08 5:59 
Generalstrange questions about an array Pin
kcynic28-Mar-08 2:18
kcynic28-Mar-08 2:18 
GeneralRe: strange questions about an array Pin
Iain Clarke, Warrior Programmer28-Mar-08 2:34
Iain Clarke, Warrior Programmer28-Mar-08 2:34 
GeneralRe: strange questions about an array Pin
kcynic28-Mar-08 4:22
kcynic28-Mar-08 4:22 
GeneralRe: strange questions about an array Pin
CPallini28-Mar-08 2:56
mveCPallini28-Mar-08 2:56 
GeneralRe: strange questions about an array Pin
kcynic28-Mar-08 13:02
kcynic28-Mar-08 13:02 
GeneralRe: strange questions about an array Pin
CPallini29-Mar-08 23:13
mveCPallini29-Mar-08 23:13 
GeneralRe: strange questions about an array Pin
kcynic30-Mar-08 20:59
kcynic30-Mar-08 20:59 
AnswerRe: strange questions about an array Pin
Rajkumar R29-Mar-08 4:02
Rajkumar R29-Mar-08 4:02 

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.