Click here to Skip to main content
15,919,613 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: read file from end to beginning Pin
Branislav21-Aug-03 0:39
Branislav21-Aug-03 0:39 
GeneralGreen border with round edges around buttons Pin
nikimonkey20-Aug-03 17:08
nikimonkey20-Aug-03 17:08 
GeneralRe: Green border with round edges around buttons Pin
PJ Arends20-Aug-03 17:20
professionalPJ Arends20-Aug-03 17:20 
GeneralRe: Green border with round edges around buttons Pin
nikimonkey20-Aug-03 17:29
nikimonkey20-Aug-03 17:29 
GeneralRe: Green border with round edges around buttons Pin
J. Dunlap20-Aug-03 18:11
J. Dunlap20-Aug-03 18:11 
GeneralRe: Green border with round edges around buttons Pin
Branislav21-Aug-03 0:09
Branislav21-Aug-03 0:09 
GeneralQuestion about global variables in C/C++. Pin
George220-Aug-03 17:02
George220-Aug-03 17:02 
GeneralRe: Question about global variables in C/C++. Pin
PJ Arends20-Aug-03 17:15
professionalPJ Arends20-Aug-03 17:15 
Keep the use of global variables to a minimum. Many would even say never use them, but I believe they have their uses.

Global variables are declared in only one *.c/*.cpp file, not *.h files. If you want to access the global variable from another *.c/*.cpp file use the extern keyword. Use extern in *.h files also.

Space is allocated when the program runs, and is freed when the program exits.







Sonork 100.11743 Chicken Little

"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

Within you lies the power for good - Use it!
GeneralRe: Question about global variables in C/C++. Pin
George220-Aug-03 17:58
George220-Aug-03 17:58 
GeneralRe: Question about global variables in C/C++. Pin
Member 42425920-Aug-03 22:32
Member 42425920-Aug-03 22:32 
GeneralRe: Question about global variables in C/C++. Pin
George221-Aug-03 2:13
George221-Aug-03 2:13 
GeneralRe: Question about global variables in C/C++. Pin
Dangleberry20-Aug-03 22:35
sussDangleberry20-Aug-03 22:35 
GeneralRe: Question about global variables in C/C++. Pin
Dangleberry20-Aug-03 22:36
sussDangleberry20-Aug-03 22:36 
GeneralRe: Question about global variables in C/C++. Pin
George221-Aug-03 2:10
George221-Aug-03 2:10 
GeneralRe: Question about global variables in C/C++. Pin
G. Steudtel21-Aug-03 0:36
G. Steudtel21-Aug-03 0:36 
GeneralRe: Question about global variables in C/C++. Pin
George221-Aug-03 2:08
George221-Aug-03 2:08 
GeneralRe: Question about global variables in C/C++. Pin
Maxwell Chen21-Aug-03 2:22
Maxwell Chen21-Aug-03 2:22 
GeneralRe: Question about global variables in C/C++. Pin
George221-Aug-03 2:32
George221-Aug-03 2:32 
GeneralRe: Question about global variables in C/C++. Pin
Maxwell Chen21-Aug-03 2:52
Maxwell Chen21-Aug-03 2:52 
GeneralRe: Question about global variables in C/C++. Pin
George221-Aug-03 3:03
George221-Aug-03 3:03 
GeneralRe: Question about global variables in C/C++. Pin
Maxwell Chen21-Aug-03 3:30
Maxwell Chen21-Aug-03 3:30 
GeneralRe: Question about global variables in C/C++. Pin
George221-Aug-03 15:31
George221-Aug-03 15:31 
Generalnewbie problem Pin
Anonymous20-Aug-03 15:35
Anonymous20-Aug-03 15:35 
GeneralRe: newbie problem Pin
parths20-Aug-03 15:46
parths20-Aug-03 15:46 
GeneralRe: newbie problem Pin
Anonymous20-Aug-03 15:54
Anonymous20-Aug-03 15:54 

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.