Click here to Skip to main content
15,887,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Global Variable Pin
RChin11-Jan-06 23:28
RChin11-Jan-06 23:28 
GeneralRe: Global Variable Pin
<color>Aljechin 12-Jan-06 0:01
<color>Aljechin 12-Jan-06 0:01 
AnswerRe: Global Variable Pin
Dennis Gourjii11-Jan-06 23:29
Dennis Gourjii11-Jan-06 23:29 
GeneralRe: Global Variable Pin
<color>Aljechin 12-Jan-06 0:00
<color>Aljechin 12-Jan-06 0:00 
GeneralRe: Global Variable Pin
Nish Nishant12-Jan-06 8:23
sitebuilderNish Nishant12-Jan-06 8:23 
AnswerRe: Global Variable Pin
<color>Aljechin 11-Jan-06 23:43
<color>Aljechin 11-Jan-06 23:43 
AnswerRe: Global Variable Pin
toxcct12-Jan-06 0:08
toxcct12-Jan-06 0:08 
GeneralRe: Global Variable Pin
<color>Aljechin 12-Jan-06 0:16
<color>Aljechin 12-Jan-06 0:16 
My application stores its installation path and various information in registry key. But it will be enough for me to find it once, that is at the application startup, in InitInstance() Later I will put this value in one variable and want to call it from various places depending on user's action, and certain events. Now what I do is I am reading that registry path every where throught the program Frown | :( (whenever the value is required)

I thought it would be a nice idea to have stored it in a global variable which would be accessible by all the c++ files.

Thanks for your explanation about naming conventions. I will certainly follow those.

Thanks and Regards,
Aljechin Alexander


Rose | [Rose]
GeneralRe: Global Variable Pin
toxcct12-Jan-06 0:18
toxcct12-Jan-06 0:18 
GeneralRe: Global Variable Pin
<color>Aljechin 12-Jan-06 0:27
<color>Aljechin 12-Jan-06 0:27 
GeneralRe: Global Variable Pin
toxcct12-Jan-06 0:31
toxcct12-Jan-06 0:31 
QuestionMSChart OCX in VC++.NET Pin
salaikumar11-Jan-06 23:02
salaikumar11-Jan-06 23:02 
AnswerRe: MSChart OCX in VC++.NET Pin
Prakash Nadar11-Jan-06 23:08
Prakash Nadar11-Jan-06 23:08 
Questioncan i send the ACK message in TCP/IP by vc++ Pin
vikas amin11-Jan-06 22:43
vikas amin11-Jan-06 22:43 
AnswerRe: can i send the ACK message in TCP/IP by vc++ Pin
Prakash Nadar11-Jan-06 23:04
Prakash Nadar11-Jan-06 23:04 
GeneralRe: can i send the ACK message in TCP/IP by vc++ Pin
vikas amin12-Jan-06 1:09
vikas amin12-Jan-06 1:09 
GeneralRe: can i send the ACK message in TCP/IP by vc++ Pin
Prakash Nadar12-Jan-06 1:21
Prakash Nadar12-Jan-06 1:21 
GeneralRe: can i send the ACK message in TCP/IP by vc++ Pin
vikas amin12-Jan-06 4:55
vikas amin12-Jan-06 4:55 
QuestionHow to call conf.exe using service Pin
trinadh_t11-Jan-06 22:36
trinadh_t11-Jan-06 22:36 
AnswerRe: How to call conf.exe using service Pin
Sebastian Schneider11-Jan-06 22:56
Sebastian Schneider11-Jan-06 22:56 
GeneralRe: How to call conf.exe using service Pin
trinadh_t12-Jan-06 0:41
trinadh_t12-Jan-06 0:41 
GeneralRe: How to call conf.exe using service Pin
Sebastian Schneider12-Jan-06 1:08
Sebastian Schneider12-Jan-06 1:08 
QuestionXML Parsing on the fly Pin
topus11-Jan-06 22:14
topus11-Jan-06 22:14 
AnswerRe: XML Parsing on the fly Pin
kakan11-Jan-06 22:44
professionalkakan11-Jan-06 22:44 
GeneralRe: XML Parsing on the fly Pin
lemur211-Jan-06 23:29
lemur211-Jan-06 23:29 

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.