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

C / C++ / MFC

 
AnswerRe: C/C++ programming under Linux/Unix Pin
mav@octaval18-Nov-09 21:20
mav@octaval18-Nov-09 21:20 
AnswerRe: C/C++ programming under Linux/Unix Pin
sashoalm18-Nov-09 22:34
sashoalm18-Nov-09 22:34 
AnswerRe: C/C++ programming under Linux/Unix Pin
Rajesh R Subramanian19-Nov-09 4:02
professionalRajesh R Subramanian19-Nov-09 4:02 
QuestionMethod to migrate C++ application from vs6 to vs8 Pin
john563218-Nov-09 19:17
john563218-Nov-09 19:17 
AnswerRe: Method to migrate C++ application from vs6 to vs8 Pin
john563218-Nov-09 20:18
john563218-Nov-09 20:18 
GeneralRe: Method to migrate C++ application from vs6 to vs8 Pin
Cedric Moonen18-Nov-09 20:35
Cedric Moonen18-Nov-09 20:35 
GeneralRe: Method to migrate C++ application from vs6 to vs8 Pin
john563218-Nov-09 20:36
john563218-Nov-09 20:36 
QuestionHow to declare Global Variable [modified] Pin
Max++18-Nov-09 18:29
Max++18-Nov-09 18:29 
AnswerRe: How to declare Global Variable Pin
Hadi Dayvary18-Nov-09 19:05
professionalHadi Dayvary18-Nov-09 19:05 
General[Message Deleted] Pin
Paulraj G18-Nov-09 19:40
Paulraj G18-Nov-09 19:40 
GeneralRe: How to declare Global Variable Pin
Paulraj G18-Nov-09 19:44
Paulraj G18-Nov-09 19:44 
AnswerRe: How to declare Global Variable Pin
CPallini18-Nov-09 20:57
mveCPallini18-Nov-09 20:57 
GeneralRe: How to declare Global Variable Pin
Tim Craig19-Nov-09 14:01
Tim Craig19-Nov-09 14:01 
GeneralRe: How to declare Global Variable Pin
Rajesh R Subramanian19-Nov-09 16:45
professionalRajesh R Subramanian19-Nov-09 16:45 
GeneralRe: How to declare Global Variable Pin
Tim Craig19-Nov-09 18:29
Tim Craig19-Nov-09 18:29 
GeneralRe: How to declare Global Variable Pin
Rajesh R Subramanian19-Nov-09 20:01
professionalRajesh R Subramanian19-Nov-09 20:01 
GeneralRe: How to declare Global Variable Pin
CPallini19-Nov-09 21:15
mveCPallini19-Nov-09 21:15 
GeneralRe: How to declare Global Variable Pin
Tim Craig20-Nov-09 9:38
Tim Craig20-Nov-09 9:38 
GeneralRe: How to declare Global Variable Pin
CPallini20-Nov-09 20:28
mveCPallini20-Nov-09 20:28 
Tim Craig wrote:
But if a variable needs to be seen by the whole application, then encapsulating it in the app class seems the perfect place for it.

Nah. If you need just one variable, granting access to other members of CWinApp make no sense (if we've a reason to keep OOP alive: you know, information hiding Poke tongue | ;-P Poke tongue | ;-P . If the OP needs, for instance, a global counter, then you grant him access to m_hInstance, m_pActiveWnd and so on?).
Big Grin | :-D

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: How to declare Global Variable Pin
Tim Craig20-Nov-09 21:44
Tim Craig20-Nov-09 21:44 
AnswerRe: How to declare Global Variable Pin
Rajesh R Subramanian19-Nov-09 16:43
professionalRajesh R Subramanian19-Nov-09 16:43 
QuestionDelete CLISTCONTROL Item Pin
Paulraj G18-Nov-09 17:29
Paulraj G18-Nov-09 17:29 
AnswerRe: Delete CLISTCONTROL Item Pin
Code-o-mat18-Nov-09 20:34
Code-o-mat18-Nov-09 20:34 
AnswerRe: Delete CLISTCONTROL Item Pin
David Crow19-Nov-09 3:20
David Crow19-Nov-09 3:20 
QuestionDIB built by extracting 3 channels as RGB from multiband tiff is drawn wiredly in view Pin
jianzhuhuai18-Nov-09 16:12
jianzhuhuai18-Nov-09 16:12 

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.