Click here to Skip to main content
15,920,704 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Loading Problem Pin
Sonu Kapoor7-Feb-02 8:40
Sonu Kapoor7-Feb-02 8:40 
GeneralRe: Loading Problem Pin
User 66587-Feb-02 8:53
User 66587-Feb-02 8:53 
GeneralRe: Loading Problem Pin
Nish Nishant7-Feb-02 8:55
sitebuilderNish Nishant7-Feb-02 8:55 
GeneralRe: Loading Problem Pin
Sonu Kapoor7-Feb-02 8:59
Sonu Kapoor7-Feb-02 8:59 
GeneralRe: Loading Problem Pin
Joaquín M López Muñoz7-Feb-02 9:09
Joaquín M López Muñoz7-Feb-02 9:09 
GeneralRe: Loading Problem Pin
Sonu Kapoor7-Feb-02 9:14
Sonu Kapoor7-Feb-02 9:14 
GeneralSams book on visual C++ Pin
Rajveer7-Feb-02 5:31
Rajveer7-Feb-02 5:31 
GeneralRe: Sams book on visual C++ Pin
Jon Hulatt7-Feb-02 6:18
Jon Hulatt7-Feb-02 6:18 
It looks to me like m_sResults is a member variable, probably a CString mapped in classwizard to an edit box or a static control or something.

What does that mean? well, you can add an edit box to your dialog in the dialog editor. You've probably already learned that in VC/MFC, a dialog is represented by a class. well, each control on the dialog box is represented by a member variable in that class. you use the class wizard tool to control the mappings between controls on the dialog, and memebr variables in your class.

The code snippet you've typed in relies on this class wizard mapping being setup: if it was, you wouldnt be getting those errors.

I think therefore that the code you are reading is meant to be indicative of the point in discussion and not directly intended to be typed in and tried. It probably isn't necessary for the book to explain how to make every classwizard mapping for every control in every example.

If there's a CD in the book, it probably has VC projects to open of all these code snippets, so you can see the code in action. These projects will include all of the dependant configuration that is omitted from the sample.

Stick at it, and if you get stuck, post here... people will help.

You'll feel very rewarded when you write your first working MFC app on your own. But I warn you now, the 21 days thing is a gimmick... it takes years to learn VC++ properly. The really knowledgeable people on this forum have all been using VC for years, and I bet if you asked any of them they'd tell you they're still learning.

Jon

Sorry to dissapoint you all with my lack of a witty or poignant signature.
GeneralRe: C2664 Pin
7-Feb-02 4:52
suss7-Feb-02 4:52 
GeneralRe: C2664 Pin
Jon Hulatt7-Feb-02 5:04
Jon Hulatt7-Feb-02 5:04 
GeneralRe: C2664 Pin
Giles7-Feb-02 9:40
Giles7-Feb-02 9:40 
GeneralRe: C2664 Pin
Christian Graus7-Feb-02 9:51
protectorChristian Graus7-Feb-02 9:51 
GeneraleVC Image Zoom Problem Pin
7-Feb-02 4:36
suss7-Feb-02 4:36 
GeneraliCListView and CTreeView Pin
7-Feb-02 3:07
suss7-Feb-02 3:07 
GeneralRe: iCListView and CTreeView Pin
Jon Hulatt7-Feb-02 4:42
Jon Hulatt7-Feb-02 4:42 
Questionhow to compile win32 program in bcb 5.0 Pin
Johndotcom7-Feb-02 3:03
Johndotcom7-Feb-02 3:03 
AnswerRe: how to compile win32 program in bcb 5.0 Pin
Carlos Antollini7-Feb-02 3:12
Carlos Antollini7-Feb-02 3:12 
GeneralRe: how to compile win32 program in bcb 5.0 Pin
Johndotcom7-Feb-02 16:21
Johndotcom7-Feb-02 16:21 
GeneralRe: how to compile win32 program in bcb 5.0 Pin
Carlos Antollini8-Feb-02 2:35
Carlos Antollini8-Feb-02 2:35 
GeneralRe: how to compile win32 program in bcb 5.0 Pin
Johndotcom8-Feb-02 18:28
Johndotcom8-Feb-02 18:28 
GeneralCan't find the clrscr() program Pin
Fredrik N7-Feb-02 2:47
Fredrik N7-Feb-02 2:47 
GeneralRe: Can't find the clrscr() program Pin
Carlos Antollini7-Feb-02 3:06
Carlos Antollini7-Feb-02 3:06 
GeneralRe: Can't find the clrscr() program Pin
Atul Dharne7-Feb-02 3:26
Atul Dharne7-Feb-02 3:26 
GeneralA simple query on VC++ Pin
7-Feb-02 2:12
suss7-Feb-02 2:12 
GeneralRe: A simple query on VC++ Pin
Jon Hulatt7-Feb-02 2:41
Jon Hulatt7-Feb-02 2:41 

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.