Click here to Skip to main content
15,909,530 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Rookie Pin
Christian Graus6-Dec-02 20:23
protectorChristian Graus6-Dec-02 20:23 
GeneralRe: Rookie Pin
Michael Dunn6-Dec-02 20:28
sitebuilderMichael Dunn6-Dec-02 20:28 
GeneralRe: Rookie Pin
Christian Graus6-Dec-02 20:30
protectorChristian Graus6-Dec-02 20:30 
GeneralRe: Rookie Pin
Michael Dunn6-Dec-02 20:34
sitebuilderMichael Dunn6-Dec-02 20:34 
GeneralRe: Rookie Pin
Christian Graus6-Dec-02 20:41
protectorChristian Graus6-Dec-02 20:41 
GeneralRe: Rookie Pin
KaЯl7-Dec-02 1:53
KaЯl7-Dec-02 1:53 
GeneralRe: Rookie Pin
Christian Graus6-Dec-02 20:22
protectorChristian Graus6-Dec-02 20:22 
GeneralRe: Rookie Pin
Alvaro Mendez7-Dec-02 9:26
Alvaro Mendez7-Dec-02 9:26 
Now imagine, just for one second, what would have happened if Microsoft had decided to add just a few extra operators to the CEdit class:

// Assigment operators
CEdit& operator=(const CString& strText);
CEdit& operator=(int nText);
CEdit& operator=(double dText);
 
// Conversion operators
operator CString() const;
operator int() const;
operator double() const;


Then we could do things like:

m_editCtrl = "This value";
m_editCtrl = 123;
 
functionWhichTakesACStringParam(m_editCtrl);
int nValue = m_editCtrl + 10;



Oh well, we can only dream of what could have been. It's just amazing how much easier VB developers could have picked VC++ if Microsoft had really exploited the power of C++ inside MFC.

Regards,
Alvaro


Well done is better than well said. -- Benjamin Franklin
(I actually prefer medium-well.)
GeneralRe: Rookie Pin
Christian Graus7-Dec-02 11:23
protectorChristian Graus7-Dec-02 11:23 
GeneralRe: Rookie Pin
PJ Arends7-Dec-02 11:45
professionalPJ Arends7-Dec-02 11:45 
GeneralRe: Rookie Pin
Nitron7-Dec-02 12:37
Nitron7-Dec-02 12:37 
GeneralRe: Rookie Pin
PJ Arends7-Dec-02 12:50
professionalPJ Arends7-Dec-02 12:50 
GeneralRe: Rookie Pin
jhwurmbach8-Dec-02 22:11
jhwurmbach8-Dec-02 22:11 
GeneralIE plugin Pin
xxhimanshu6-Dec-02 19:20
xxhimanshu6-Dec-02 19:20 
GeneralRe: IE plugin Pin
Laurent Michalkovic6-Dec-02 21:52
Laurent Michalkovic6-Dec-02 21:52 
GeneralRe: IE plugin Pin
xxhimanshu6-Dec-02 22:53
xxhimanshu6-Dec-02 22:53 
General#import directive Pin
nebbish6-Dec-02 19:02
nebbish6-Dec-02 19:02 
GeneralRe: #import directive Pin
Michael Dunn6-Dec-02 20:25
sitebuilderMichael Dunn6-Dec-02 20:25 
GeneralCListCtrl: What message to use for an event handler.. Pin
trustno16-Dec-02 17:22
trustno16-Dec-02 17:22 
GeneralRe: CListCtrl: What message to use for an event handler.. Pin
Michael Dunn6-Dec-02 20:32
sitebuilderMichael Dunn6-Dec-02 20:32 
GeneralMoving a single control in on HScroll in a CScrollView class Pin
VanHlebar6-Dec-02 16:10
VanHlebar6-Dec-02 16:10 
Questionhow to read data into an array in visual c++ Pin
KBL6-Dec-02 14:46
KBL6-Dec-02 14:46 
AnswerRe: how to read data into an array in visual c++ Pin
Christian Graus6-Dec-02 14:51
protectorChristian Graus6-Dec-02 14:51 
GeneralRe: how to read data into an array in visual c++ Pin
KBL6-Dec-02 15:16
KBL6-Dec-02 15:16 
GeneralRe: how to read data into an array in visual c++ Pin
Christian Graus6-Dec-02 15:27
protectorChristian Graus6-Dec-02 15:27 

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.