Click here to Skip to main content
15,929,686 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Value of DC_BUTTONS flag for DrawCaption() Pin
MAAK19-Feb-03 12:32
MAAK19-Feb-03 12:32 
GeneralDetect Event Pin
jeremysay19-Feb-03 2:19
jeremysay19-Feb-03 2:19 
GeneralRe: Detect Event Pin
HENDRIK R19-Feb-03 2:29
HENDRIK R19-Feb-03 2:29 
GeneralRe: Detect Event Pin
jeremysay19-Feb-03 2:59
jeremysay19-Feb-03 2:59 
GeneralRe: Detect Event Pin
HENDRIK R19-Feb-03 22:08
HENDRIK R19-Feb-03 22:08 
GeneralRe: Detect Event Pin
jeremysay20-Feb-03 1:53
jeremysay20-Feb-03 1:53 
GeneralRe: Detect Event Pin
HENDRIK R20-Feb-03 4:11
HENDRIK R20-Feb-03 4:11 
GeneralRe: Detect Event Pin
jeremysay20-Feb-03 21:10
jeremysay20-Feb-03 21:10 
GeneralRe: Detect Event Pin
HENDRIK R21-Feb-03 0:43
HENDRIK R21-Feb-03 0:43 
GeneralRe: Detect Event Pin
jeremysay21-Feb-03 3:19
jeremysay21-Feb-03 3:19 
GeneralRe: Detect Event Pin
HENDRIK R21-Feb-03 3:23
HENDRIK R21-Feb-03 3:23 
GeneralRe: Detect Event Pin
jeremysay21-Feb-03 3:39
jeremysay21-Feb-03 3:39 
GeneralNot Access at OS ! Pin
MyEden19-Feb-03 1:59
MyEden19-Feb-03 1:59 
Generalpassing to_date function in DAO for oracle DB Pin
stv19-Feb-03 1:24
stv19-Feb-03 1:24 
GeneralUsing an ActiveX located on a remote computer Pin
Jerome Conus19-Feb-03 1:20
Jerome Conus19-Feb-03 1:20 
GeneralRe: Using an ActiveX located on a remote computer Pin
AlexO19-Feb-03 3:59
AlexO19-Feb-03 3:59 
GeneralRe: Using an ActiveX located on a remote computer Pin
Jason Henderson19-Feb-03 7:09
Jason Henderson19-Feb-03 7:09 
GeneralSimple CRecordset question: Pin
SatyaDY19-Feb-03 0:55
SatyaDY19-Feb-03 0:55 
GeneralA C++ error Pin
Anonymous19-Feb-03 0:11
Anonymous19-Feb-03 0:11 
GeneralRe: A C++ error Pin
jhwurmbach19-Feb-03 1:02
jhwurmbach19-Feb-03 1:02 
GeneralNo dear Pin
Shah Shehpori19-Feb-03 1:17
sussShah Shehpori19-Feb-03 1:17 
GeneralRe: No dear Pin
Hans Ruck19-Feb-03 1:34
Hans Ruck19-Feb-03 1:34 
GeneralForwar declaration Pin
Alois Kraus19-Feb-03 4:49
Alois Kraus19-Feb-03 4:49 
GeneralRe: No dear Pin
Roger Allen19-Feb-03 2:18
Roger Allen19-Feb-03 2:18 
When the compiler is allocating the data space for class A, it needs to know the exact size of each of the objects that make it up. If you have a B sum; in class A's declaration, the compiler needs to know its exact size, which is currently not defined. This is an error. If it was declared as B* sum, the compiler knows the size of a pointer to an object, so can work out how big class A is going to be. This is OK.

If you still need to declare class A with a B sum then you will have to move the declration of class B before class A. But as you said in your original post, class B will be referencing class A in some way. If both do somthing like B sum and A total then one of your classes will have to use a pointer to the object otherwise you will not be able to get the code to compile due to a circular definition.


Roger Allen
Sonork 100.10016

Were you different as a kid? Did you ever say "Ooohhh, shiny red" even once? - Paul Watson 11-February-2003
GeneralWM_GETMINMAXINFO Pin
Maurizio Pisano19-Feb-03 0:03
Maurizio Pisano19-Feb-03 0:03 

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.