Click here to Skip to main content
15,913,669 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAbout Dll's Pin
Neeraj Sinha6-Nov-06 19:14
Neeraj Sinha6-Nov-06 19:14 
AnswerRe: About Dll's Pin
Hamid_RT6-Nov-06 20:06
Hamid_RT6-Nov-06 20:06 
Questionproblems on mutual class declaration introduction between classes Pin
cy163@hotmail.com6-Nov-06 18:37
cy163@hotmail.com6-Nov-06 18:37 
AnswerRe: problems on mutual class declaration introduction between classes [modified] Pin
Steve Echols6-Nov-06 18:51
Steve Echols6-Nov-06 18:51 
GeneralRe: problems on mutual class declaration introduction between classes Pin
Cedric Moonen6-Nov-06 20:25
Cedric Moonen6-Nov-06 20:25 
GeneralRe: problems on mutual class declaration introduction between classes Pin
Steve Echols6-Nov-06 20:29
Steve Echols6-Nov-06 20:29 
GeneralRe: problems on mutual class declaration introduction between classes Pin
cy163@hotmail.com7-Nov-06 2:25
cy163@hotmail.com7-Nov-06 2:25 
GeneralRe: problems on mutual class declaration introduction between classes Pin
Cedric Moonen7-Nov-06 2:42
Cedric Moonen7-Nov-06 2:42 
cy163@hotmail.com wrote:
Why we cannot use them as we use 'int' 'float'


You don't need to 'define' what an integer is, do you ? Here, with classes, in order to use them, you need to first define them, that is provide all the members of the class (functions and variables). The compiler needs to compute the size of your class whenever you will use it in your code (to allocate memory for it). For that, all the members of the class needs to be known (and also need to know their respective size). If you include one object into a another and vice-versa, you cannot calculate the size, it's like in real life: try to put one container inside another one and then put the latter into the first one, quite tricky isn't it ? So, for the compiler it is the same.
Is you use pointers instead, that is different because a pointer is just an address (so a size of 4 bytes always).


cy163@hotmail.com wrote:
I am a VC/MFC newbie


We all started there. But in this case, this is pure C++ (VC and MFC are microsoft and C++ is a standard language).


Cédric Moonen
Software developer

Charting control [Updated - v1.1]

GeneralRe: problems on mutual class declaration introduction between classes [modified] Pin
cy163@hotmail.com7-Nov-06 12:15
cy163@hotmail.com7-Nov-06 12:15 
GeneralRe: problems on mutual class declaration introduction between classes Pin
Cedric Moonen7-Nov-06 20:23
Cedric Moonen7-Nov-06 20:23 
GeneralRe: problems on mutual class declaration introduction between classes Pin
cy163@hotmail.com8-Nov-06 0:52
cy163@hotmail.com8-Nov-06 0:52 
GeneralRe: problems on mutual class declaration introduction between classes [modified] Pin
cy163@hotmail.com7-Nov-06 2:19
cy163@hotmail.com7-Nov-06 2:19 
QuestionCListCtrl Pin
kk.tvm6-Nov-06 18:18
kk.tvm6-Nov-06 18:18 
AnswerRe: CListCtrl Pin
prasad_som6-Nov-06 18:36
prasad_som6-Nov-06 18:36 
AnswerRe: CListCtrl Pin
Nibu babu thomas6-Nov-06 18:43
Nibu babu thomas6-Nov-06 18:43 
AnswerRe: CListCtrl Pin
Hamid_RT7-Nov-06 4:20
Hamid_RT7-Nov-06 4:20 
QuestionHow to get IHTMLElement using elementFromPoint in Frame? Pin
31415926536-Nov-06 18:09
31415926536-Nov-06 18:09 
QuestionHow to highlight a Check box if no caption Pin
vikas amin6-Nov-06 18:07
vikas amin6-Nov-06 18:07 
AnswerRe: How to highlight a Check box if no caption Pin
Hamid_RT6-Nov-06 20:18
Hamid_RT6-Nov-06 20:18 
GeneralRe: How to highlight a Check box if no caption Pin
vikas amin6-Nov-06 21:28
vikas amin6-Nov-06 21:28 
GeneralRe: How to highlight a Check box if no caption Pin
Hamid_RT7-Nov-06 4:31
Hamid_RT7-Nov-06 4:31 
AnswerRe: How to highlight a Check box if no caption Pin
Niklas L6-Nov-06 20:54
Niklas L6-Nov-06 20:54 
GeneralRe: How to highlight a Check box if no caption Pin
Niklas L6-Nov-06 21:33
Niklas L6-Nov-06 21:33 
AnswerRe: How to highlight a Check box if no caption Pin
Blake Miller7-Nov-06 3:48
Blake Miller7-Nov-06 3:48 
QuestionInserting Data in database by Atl consumer wizard [modified] Pin
With_problem6-Nov-06 16:26
With_problem6-Nov-06 16:26 

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.