Click here to Skip to main content
16,011,534 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionfile input help Pin
Ackmm712-Apr-07 16:08
Ackmm712-Apr-07 16:08 
AnswerRe: file input help Pin
CPallini12-Apr-07 20:56
mveCPallini12-Apr-07 20:56 
QuestionAccessing CView from CDialog MFC??? Pin
bimgot12-Apr-07 15:24
bimgot12-Apr-07 15:24 
AnswerRe: Accessing CView from CDialog MFC??? Pin
bob1697212-Apr-07 16:44
bob1697212-Apr-07 16:44 
GeneralRe: Accessing CView from CDialog MFC??? Pin
ksrameshkanth12-Apr-07 19:35
ksrameshkanth12-Apr-07 19:35 
GeneralRe: Accessing CView from CDialog MFC??? Pin
bimgot13-Apr-07 2:30
bimgot13-Apr-07 2:30 
GeneralRe: Accessing CView from CDialog MFC??? Pin
JudyL_MD13-Apr-07 2:46
JudyL_MD13-Apr-07 2:46 
GeneralRe: Accessing CView from CDialog MFC??? Pin
bob1697213-Apr-07 3:22
bob1697213-Apr-07 3:22 
You'll assert because the windows don't exist unless the dialog is modal (I'm not considering modeless since that comes with it's own set of issues). The dialog object does exist and that's where the members come into play.

Make sure the member variables you create are for the value and not the slider control. Notice that the member in the sample is of type int and not CSliderCtrl (You could create one of both so you can get to the control from within the dialog class, just remember not to use it if the dialog window does not exist.) Separate the dialog object from the window and the asserts will make more sense.

Hope that helps
GeneralRe: Accessing CView from CDialog MFC??? Pin
bimgot15-Apr-07 13:17
bimgot15-Apr-07 13:17 
QuestionCorrect way to remove old unused symbol? Pin
maxmaven12-Apr-07 11:23
maxmaven12-Apr-07 11:23 
AnswerRe: Correct way to remove old unused symbol? Pin
Ravi Bhavnani12-Apr-07 11:34
professionalRavi Bhavnani12-Apr-07 11:34 
GeneralRe: Correct way to remove old unused symbol? Pin
dburns12-Apr-07 17:10
dburns12-Apr-07 17:10 
QuestionDouble linked list is overwriting string items Pin
Yustme12-Apr-07 10:38
Yustme12-Apr-07 10:38 
AnswerRe: Double linked list is overwriting string items Pin
cp987612-Apr-07 14:15
cp987612-Apr-07 14:15 
GeneralRe: Double linked list is overwriting string items Pin
Yustme13-Apr-07 2:16
Yustme13-Apr-07 2:16 
QuestionNew to VS 2005 - How do I switch between C++ to C#? Pin
huehue12-Apr-07 8:54
huehue12-Apr-07 8:54 
AnswerRe: New to VS 2005 - How do I switch between C++ to C#? Pin
led mike12-Apr-07 9:23
led mike12-Apr-07 9:23 
AnswerRe: New to VS 2005 - How do I switch between C++ to C#? Pin
huehue12-Apr-07 10:45
huehue12-Apr-07 10:45 
AnswerRe: New to VS 2005 - How do I switch between C++ to C#? Pin
George L. Jackson12-Apr-07 11:15
George L. Jackson12-Apr-07 11:15 
GeneralRe: New to VS 2005 - How do I switch between C++ to C#? Pin
huehue12-Apr-07 11:29
huehue12-Apr-07 11:29 
GeneralRe: New to VS 2005 - How do I switch between C++ to C#? Pin
George L. Jackson12-Apr-07 11:42
George L. Jackson12-Apr-07 11:42 
QuestionHow To Load Google Toolbar For Dialog Pin
MyNothing12-Apr-07 7:10
MyNothing12-Apr-07 7:10 
AnswerRe: How To Load Google Toolbar For Dialog Pin
Reagan Conservative12-Apr-07 9:35
Reagan Conservative12-Apr-07 9:35 
Questioninstalling a program i've made Pin
Tully200312-Apr-07 6:45
Tully200312-Apr-07 6:45 
AnswerRe: installing a program i've made Pin
Mark Salsbery12-Apr-07 7:12
Mark Salsbery12-Apr-07 7: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.