Click here to Skip to main content
15,924,318 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Read/write from a binary file @ specified offsets Pin
31-Jul-01 9:58
suss31-Jul-01 9:58 
GeneralCListView Not cooperating... Pin
Joseph Dempsey27-Jul-01 6:12
Joseph Dempsey27-Jul-01 6:12 
GeneralRe: CListView Not cooperating... Pin
Matt Gullett27-Jul-01 6:20
Matt Gullett27-Jul-01 6:20 
GeneralRe: CListView Not cooperating... Pin
Diarrhio28-Jul-01 3:21
Diarrhio28-Jul-01 3:21 
GeneralCross Class Functions Pin
Matt Newman27-Jul-01 5:50
Matt Newman27-Jul-01 5:50 
GeneralRe: Cross Class Functions Pin
Chris Losinger27-Jul-01 5:53
professionalChris Losinger27-Jul-01 5:53 
GeneralRe: Cross Class Functions Pin
Matt Newman27-Jul-01 6:04
Matt Newman27-Jul-01 6:04 
GeneralRe: Cross Class Functions Pin
Chris Losinger27-Jul-01 7:05
professionalChris Losinger27-Jul-01 7:05 
This is really one of the basic principles (maybe the most basic principle) in all of Object Oriented programming: you have a set of functions and properties grouped together that comprise an "object". You can tell the object to do something (invoke methods on the object), to report its state, to change its state, etc..

CString myString; 

After this statement executes, "myString" is an "instance" of CString. Or, you could say "myString is an object of type CString".

Now you can call CString methods on myString:
BOOL b = myString.IsEmpty();
myString.MakeUpper();

etc..

What you can't do is call (non static) CString methods without having a CString object to call them on:

CString::Reverse();


This statement makes no sense (at all).What are you trying to Reverse? There is no object there. It's a verb without a noun.

-c

------------------------------
Smaller Animals Software, Inc.
http://www.smalleranimals.com
GeneralRe: Cross Class Functions Pin
Matt Newman27-Jul-01 8:23
Matt Newman27-Jul-01 8:23 
GeneralPLEASE HELP !!!! URGENT !!!!!!!!!! save struct in file Pin
27-Jul-01 5:09
suss27-Jul-01 5:09 
GeneralRe: PLEASE HELP !!!! URGENT !!!!!!!!!! save struct in file Pin
Joaquín M López Muñoz27-Jul-01 5:37
Joaquín M López Muñoz27-Jul-01 5:37 
Questionproblem with SetActiveView( , ),,?????? Pin
mr200327-Jul-01 4:40
mr200327-Jul-01 4:40 
AnswerRe: problem with SetActiveView( , ),,?????? Pin
Tomasz Sowinski27-Jul-01 4:50
Tomasz Sowinski27-Jul-01 4:50 
GeneralRe: problem with SetActiveView( , ),,?????? Pin
mr200327-Jul-01 6:06
mr200327-Jul-01 6:06 
GeneralRe: problem with SetActiveView( , ),,?????? Pin
Matt Gullett27-Jul-01 6:14
Matt Gullett27-Jul-01 6:14 
GeneralRe: problem with SetActiveView( , ),,?????? Pin
mr200327-Jul-01 8:34
mr200327-Jul-01 8:34 
GeneralAdding A Interface Pin
AJ12327-Jul-01 4:37
AJ12327-Jul-01 4:37 
GeneralRe: Adding A Interface Pin
Not Active27-Jul-01 8:18
mentorNot Active27-Jul-01 8:18 
GeneralVC Pre-Build Commands Pin
Steve Thresher27-Jul-01 4:10
Steve Thresher27-Jul-01 4:10 
GeneralSystem DSNs Pin
27-Jul-01 4:07
suss27-Jul-01 4:07 
GeneralRe: System DSNs Pin
Not Active27-Jul-01 8:23
mentorNot Active27-Jul-01 8:23 
GeneralBackground color of CListCtrl Pin
skfnmuislædmufaæoi27-Jul-01 4:03
skfnmuislædmufaæoi27-Jul-01 4:03 
GeneralRe: Background color of CListCtrl Pin
Tomasz Sowinski27-Jul-01 4:39
Tomasz Sowinski27-Jul-01 4:39 
GeneralRe: Background color of CListCtrl Pin
skfnmuislædmufaæoi29-Jul-01 2:38
skfnmuislædmufaæoi29-Jul-01 2:38 
GeneralRe: Background color of CListCtrl Pin
Tomasz Sowinski29-Jul-01 23:12
Tomasz Sowinski29-Jul-01 23:12 

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.