Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralForward Declaration. Pin
vikramlinux27-Feb-05 18:36
vikramlinux27-Feb-05 18:36 
GeneralRe: Forward Declaration. Pin
ThatsAlok27-Feb-05 19:57
ThatsAlok27-Feb-05 19:57 
GeneralRe: Forward Declaration. Pin
vikramlinux27-Feb-05 21:00
vikramlinux27-Feb-05 21:00 
GeneralRe: Forward Declaration. Pin
zhang80060527-Feb-05 20:03
zhang80060527-Feb-05 20:03 
GeneralRe: Forward Declaration. Pin
cmk27-Feb-05 20:53
cmk27-Feb-05 20:53 
GeneralRe: Forward Declaration. Pin
vikramlinux27-Feb-05 21:01
vikramlinux27-Feb-05 21:01 
GeneralRe: Forward Declaration. Pin
cmk27-Feb-05 23:34
cmk27-Feb-05 23:34 
GeneralRe: Forward Declaration. Pin
ThatsAlok27-Feb-05 22:23
ThatsAlok27-Feb-05 22:23 
cmk wrote:
At the point that you define class A the size of class B is not known.
Therefore, the compiler can not calculate the size of class A.


Yeah You are Right!!, the compiler can't calculate the size of Class A, so instead of using the declare abive as this

class B;

class A
{
public:
B *f;


}

class B
{
};


this will work fine



"I Think this Will Help"
[Vote One Here,.....]
<h5
 alok gupta="" <br=""> visit me at http://www.thisisalok.tk

GeneralRe: Forward Declaration. Pin
cmk27-Feb-05 23:38
cmk27-Feb-05 23:38 
GeneralRe: Forward Declaration. Pin
vikramlinux28-Feb-05 0:30
vikramlinux28-Feb-05 0:30 
GeneralRe: Forward Declaration. Pin
David Crow28-Feb-05 4:02
David Crow28-Feb-05 4:02 
GeneralDirectShow with VC++ 5.0: fatal error C1189 Pin
Shuang. Wu27-Feb-05 18:26
Shuang. Wu27-Feb-05 18:26 
GeneralRe: DirectShow with VC++ 5.0: fatal error C1189 Pin
Shuang. Wu1-Mar-05 20:37
Shuang. Wu1-Mar-05 20:37 
QuestionHow to make a login dialog box? Pin
Anonymous27-Feb-05 17:13
Anonymous27-Feb-05 17:13 
AnswerRe: How to make a login dialog box? Pin
ThatsAlok27-Feb-05 18:01
ThatsAlok27-Feb-05 18:01 
GeneralSyncing a single VSS database across several machines Pin
Gary Chapman27-Feb-05 15:08
Gary Chapman27-Feb-05 15:08 
GeneralRe: Syncing a single VSS database across several machines Pin
David Crow28-Feb-05 4:14
David Crow28-Feb-05 4:14 
GeneralRe: Syncing a single VSS database across several machines Pin
Gary Chapman28-Feb-05 12:09
Gary Chapman28-Feb-05 12:09 
Generalmodem phone number Pin
jonavon blakly27-Feb-05 14:26
jonavon blakly27-Feb-05 14:26 
GeneralRe: modem phone number Pin
PJ Arends27-Feb-05 22:12
professionalPJ Arends27-Feb-05 22:12 
QuestionHow to print to printer Pin
Yulianto.27-Feb-05 13:49
Yulianto.27-Feb-05 13:49 
AnswerRe: How to print to printer Pin
Christian Graus27-Feb-05 14:50
protectorChristian Graus27-Feb-05 14:50 
GeneralRe: How to print to printer Pin
Yulianto.27-Feb-05 16:07
Yulianto.27-Feb-05 16:07 
AnswerRe: How to print to printer Pin
PJ Arends27-Feb-05 18:46
professionalPJ Arends27-Feb-05 18:46 
GeneralRe: How to print to printer Pin
Yulianto.27-Feb-05 22:33
Yulianto.27-Feb-05 22:33 

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.