|
-
March 28th, 2006, 01:37 PM
#1
Class member problem...help
Here is a snipit of my code:
Class header {
public:
double timeTag;
short size;
};
Class message {
public:
short goStatus;
header msgHeader;
};
The two classes above are in a single file.
in a different file i have:
message myMessage;
myMessage.msgHeader.timeTag = ....;
the error im getting is
: error C2039: 'msgHeader' : is not a member of 'message'
myMessage.goStatus = ... "works"
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
|