|
-
April 30th, 2009, 10:44 AM
#8
Re: How to share variables/functions between classes from different files
 Originally Posted by Amleto
in CStation.h do you forward dec. CRemote?
No. Do you mean I have to put:
class CRemote;
at the beginning of CStation.h? I just tried and got four error messages (please note that the wordings are not exact as I translated from Japanese into English):
E2450 undeclared (undefined?) structure 'CStation'
E2449 station_class's size is unknown or zero
E2450 undefined structure 'CStation'
E2315 since there is no type declaration, data_to_be_shared is not a member of CStation.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|