-
March 6th, 2011, 10:22 AM
#1
LNK2020: unresolved token (0A00000B)
I'm new in C++, i'm using windows forms. i have done a class in the stdafx.h file like this:
class bookings{
public:
bookings(){};
static int floor;
static void setFloor(int f) { floor = f; }
static int getFloor() { return floor; }
//static int roomType;
//static char* client[30];
};
then in the form1.h i'm try
bookings::setFloor(1);
Then, the error appears. Please help!
-
March 6th, 2011, 01:18 PM
#2
Re: LNK2020: unresolved token (0A00000B)
why write it in stdafx.h? is stdafx inlcuded in form1.h? Why are you writing implementation code in a header - it normally goes in the .cpp file.
Tags for this Thread
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
|