Hexie
April 21st, 1999, 10:18 PM
Hi, I am a VB programmer learning MFC.
I have a label on a dialog I have a button on a dialog. When I click the button I want to change the caption of the label. What is the syntax?
I have tried the following.
CString temp = "New Caption.";
label1.Caption = temp;
The line "label1.Caption = temp;" causes a compile error because I do not have a class name in front of it. My dialog is named form1. I have tried:
Form1::label1.caption = temp;
This produces even more compiler errors.
Can any of you Gurus convert this simple VB statement to MFC?
Form1.Label1.Caption = temp
Thank You
Hexie
I have a label on a dialog I have a button on a dialog. When I click the button I want to change the caption of the label. What is the syntax?
I have tried the following.
CString temp = "New Caption.";
label1.Caption = temp;
The line "label1.Caption = temp;" causes a compile error because I do not have a class name in front of it. My dialog is named form1. I have tried:
Form1::label1.caption = temp;
This produces even more compiler errors.
Can any of you Gurus convert this simple VB statement to MFC?
Form1.Label1.Caption = temp
Thank You
Hexie