LNK2020: unresolved token (0A00000B)
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: LNK2020: unresolved token (0A00000B)

  1. #1
    Join Date
    Mar 2011
    Posts
    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!

  2. #2
    Join Date
    Apr 2008
    Posts
    726

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center