Thread: Mfc

  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    3

    Mfc

    Hi,

    I wonder if someone could please tell me why the following line:

    token(buffer, word, " ");

    //where buffer and word are CStrings

    makes the compiler spit out the following error:

    error C2065: 'token' : undeclared identifier

    I'm doing an MFC application and I'm trying to use this command on the Serialize (on load) method of the document. I saw it working on another project, but I can't make it work on mine. Appreciate any kind of help...

  2. #2
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    Did you specify the project to be an MFC exe when you created it?

  3. #3
    Registered User
    Join Date
    Jan 2006
    Posts
    3
    Yes, I did

  4. #4
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    I've never heard of a "token" method, but maybe that's just me. Put your cursor over the word token and press F1. Your MSDN will open and it will show a page explaining the function including, on the bottom, a description of the headerfile you need to include. If that's not the case, then token might be a method defined by the other project you took it from.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  5. #5
    Registered User
    Join Date
    Apr 2003
    Posts
    2,663
    MSDN doesn't list a token() function. token() must have been a user defined function in that other project you saw.

  6. #6
    Registered User
    Join Date
    Jan 2006
    Posts
    3
    You're right. It was defined on the other project. Sorry, got confused...

    Thanks a lot

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. WIndows programming?
    By hostensteffa in forum Windows Programming
    Replies: 7
    Last Post: 06-07-2002, 08:52 PM
  2. Release MFC Programs & Dynamic MFC DLL :: MFC
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 05-18-2002, 06:42 PM
  3. Understanding The Future of MFC
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 04-15-2002, 09:08 PM
  4. Beginning MFC (Prosise) Part III - Now What? :: C++
    By kuphryn in forum C++ Programming
    Replies: 5
    Last Post: 03-03-2002, 06:58 PM
  5. MFC is Challenging :: C++
    By kuphryn in forum C++ Programming
    Replies: 8
    Last Post: 02-05-2002, 01:33 AM