Click here to Skip to main content
15,902,492 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Showing page of pdf file? Pin
Bernhard6-Oct-03 4:42
Bernhard6-Oct-03 4:42 
GeneralAccessing a file's properties from a VC++ application Pin
jopett5-Oct-03 20:43
jopett5-Oct-03 20:43 
GeneralRe: Accessing a file's properties from a VC++ application Pin
David Crow6-Oct-03 3:13
David Crow6-Oct-03 3:13 
GeneralAbstract Factory in C++ Pin
Saurabh_Delhi5-Oct-03 19:46
Saurabh_Delhi5-Oct-03 19:46 
GeneralProgrammers needed Pin
LOSTTWARE.com5-Oct-03 18:29
LOSTTWARE.com5-Oct-03 18:29 
GeneralRe: Programmers needed Pin
KaЯl6-Oct-03 3:13
KaЯl6-Oct-03 3:13 
GeneralC++ Question. Pin
WREY5-Oct-03 17:44
WREY5-Oct-03 17:44 
GeneralRe: C++ Question. Pin
Anonymous5-Oct-03 20:47
Anonymous5-Oct-03 20:47 
Check the below article.

In global scope, variables defined will be global in scope.

In local scope, variables defined will be local in scope.

If a variable is local, it can be redefined in global scope. Any previous global variable is overwritten and the local definition no longer exists.

If a variable is global, it can be redefined in local scope. Any previous local variable is overwritten and the global definition no longer exists.

Global variables (and methods) created by the concept instance have a super-global scope, they are visible to all instances providing the instance has not already defined the variable in local or global scope. If the instance un-defines its own global and local copies of the variable, then the variable defined in the concept instance becomes visible. Local variables created in the concept instance are not accessible by other instances and visa versa.

A common mistake when trying to create a local variable over top of a global variable is not to typedef it. For example:

// Define global scope
global ;

// Define a global variable (we didn't use a typedef, so the type is 'list'
a = 100 ;

// Define local scope
local ;

// The following statement simply overwrites the global variable 'a'
a = 101 ;

// But the next statement creates a new local variable because it was typedef'd
int a = 1 ;


CH.L.RAMANA RAO.
chlramanarao@sify.com
GeneralRe: C++ Question. Pin
WREY5-Oct-03 21:19
WREY5-Oct-03 21:19 
GeneralRe: C++ Question. Pin
Johnny ²6-Oct-03 1:05
Johnny ²6-Oct-03 1:05 
GeneralRe: C++ Question. Pin
WREY6-Oct-03 20:35
WREY6-Oct-03 20:35 
QuestionAny SetWindowOrg(x,y) Gurus? Pin
spiritualfields5-Oct-03 17:10
spiritualfields5-Oct-03 17:10 
GeneralMoving Windows Pin
DougW485-Oct-03 16:04
DougW485-Oct-03 16:04 
GeneralRe: Moving Windows Pin
Beer265-Oct-03 16:09
Beer265-Oct-03 16:09 
GeneralRe: Moving Windows Pin
Dave Bryant5-Oct-03 16:10
Dave Bryant5-Oct-03 16:10 
Questionloosing my backspace messages??? Pin
Beer265-Oct-03 15:38
Beer265-Oct-03 15:38 
AnswerRe: loosing my backspace messages??? Pin
J. Dunlap5-Oct-03 15:53
J. Dunlap5-Oct-03 15:53 
GeneralRe: loosing my backspace messages??? Pin
Beer265-Oct-03 15:57
Beer265-Oct-03 15:57 
GeneralRe: loosing my backspace messages??? Pin
J. Dunlap5-Oct-03 16:28
J. Dunlap5-Oct-03 16:28 
AnswerRe: loosing my backspace messages??? Pin
Michael Dunn5-Oct-03 19:26
sitebuilderMichael Dunn5-Oct-03 19:26 
GeneralRe: loosing my backspace messages??? Pin
Beer266-Oct-03 3:28
Beer266-Oct-03 3:28 
GeneralSQL Database Pin
don7cry5-Oct-03 15:21
don7cry5-Oct-03 15:21 
GeneralRe: SQL Database Pin
alex.barylski5-Oct-03 16:12
alex.barylski5-Oct-03 16:12 
Generaltext color and font Pin
no_life5-Oct-03 12:51
no_life5-Oct-03 12:51 
GeneralRe: text color and font Pin
alex.barylski5-Oct-03 16:29
alex.barylski5-Oct-03 16: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.