CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2011

    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{
    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


    Then, the error appears. Please help!

  2. #2
    Join Date
    Apr 2008

    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

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.