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

C / C++ / MFC

 
QuestionGlobal Variable Pin
<color>Aljechin 11-Jan-06 23:13
<color>Aljechin 11-Jan-06 23:13 
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 
its a bit off topic, but consider this :

global variables are quite a bad habit to take, and should be used only when other cases can't work.
could you please explain a bit why you need so ?

about your variables naming, it is quite incorrect.
sz is used for the C-Style strings, which are char arrays with a trailing null character.
if you are using CString, preceed the variable name with str instead :
char* pszFoo = "C-Style Hello";
CString strFoo = "CString Hello";



TOXCCT >>> GEII power
[toxcct][VisualCalc 2.20][VisualCalc 3.0]

-- modified at 6:08 Thursday 12th January, 2006
GeneralRe: Global Variable Pin
<color>Aljechin 12-Jan-06 0:16
<color>Aljechin 12-Jan-06 0:16 
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 

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.