Click here to Skip to main content
15,914,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: numbers Pin
Ravi Bhavnani1-Aug-04 14:19
professionalRavi Bhavnani1-Aug-04 14:19 
Generalone more file io (?) Pin
namethatnooneelsetook1-Aug-04 11:56
namethatnooneelsetook1-Aug-04 11:56 
GeneralRe: one more file io (?) Pin
Ravi Bhavnani1-Aug-04 12:10
professionalRavi Bhavnani1-Aug-04 12:10 
GeneralRe: one more file io (?) Pin
Ayman Mahmoud1-Aug-04 12:40
Ayman Mahmoud1-Aug-04 12:40 
Generalhelp with file io in mfc Pin
namethatnooneelsetook1-Aug-04 10:31
namethatnooneelsetook1-Aug-04 10:31 
GeneralRe: help with file io in mfc Pin
Ravi Bhavnani1-Aug-04 11:18
professionalRavi Bhavnani1-Aug-04 11:18 
Generaldeclaring variables without using classwizard Pin
lyn1-Aug-04 9:52
lyn1-Aug-04 9:52 
GeneralRe: declaring variables without using classwizard Pin
Stan Shannon1-Aug-04 13:29
Stan Shannon1-Aug-04 13:29 
In C++, a variable that needs to be accessed by an entire class (that is, having a scope global to the class in question) is generally declared in the class header, or definition file ( the .h file for the class ) as a member variable of that class.

If you wish to to be faithful to the object oriented spirit of C++, any such variable should be declard as private so that it cannot be accessed externally by other code within the application.

Typically, you will want to assign a default value to that variable in the class constructor. You can assign values as needed in any of the class's methods.
GeneralRe: declaring variables without using classwizard Pin
lyn1-Aug-04 18:34
lyn1-Aug-04 18:34 
Generalarray Pin
mostafa_pasha1-Aug-04 9:44
mostafa_pasha1-Aug-04 9:44 
GeneralRe: array Pin
bikram singh1-Aug-04 18:23
bikram singh1-Aug-04 18:23 
GeneralCString & Edit Control Pin
mostafa_pasha1-Aug-04 8:08
mostafa_pasha1-Aug-04 8:08 
GeneralRe: CString & Edit Control Pin
Chris Losinger1-Aug-04 9:09
professionalChris Losinger1-Aug-04 9:09 
GeneralDialog Pin
S.DARWIN PAUL RAJ1-Aug-04 7:35
S.DARWIN PAUL RAJ1-Aug-04 7:35 
GeneralRe: Dialog Pin
S.DARWIN PAUL RAJ1-Aug-04 18:55
S.DARWIN PAUL RAJ1-Aug-04 18:55 
GeneralRe: Dialog Pin
David Crow2-Aug-04 4:10
David Crow2-Aug-04 4:10 
GeneralSubclassing SysListView32 in activex control problem Pin
iluha1-Aug-04 7:20
iluha1-Aug-04 7:20 
GeneralLocking DLL Pin
DavidR_r1-Aug-04 5:42
DavidR_r1-Aug-04 5:42 
GeneralRe: Locking DLL Pin
Ravi Bhavnani1-Aug-04 5:59
professionalRavi Bhavnani1-Aug-04 5:59 
GeneralRe: Locking DLL Pin
David Crow2-Aug-04 4:12
David Crow2-Aug-04 4:12 
GeneralRe: Locking DLL Pin
David Crow2-Aug-04 4:14
David Crow2-Aug-04 4:14 
GeneralRe: Locking DLL Pin
DavidR_r2-Aug-04 6:32
DavidR_r2-Aug-04 6:32 
GeneralBypass Firewall Pin
Ayman Mahmoud1-Aug-04 4:53
Ayman Mahmoud1-Aug-04 4:53 
GeneralRe: Bypass Firewall Pin
Michael Dunn1-Aug-04 5:32
sitebuilderMichael Dunn1-Aug-04 5:32 
GeneralRe: Bypass Firewall Pin
David Crow2-Aug-04 4:17
David Crow2-Aug-04 4:17 

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.