Thread: sCandal2

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    15

    sCandal2

    Hello!
    If I create MFC application I can use CString without problems. But now I try to create Win32 application. Compiler says:
    'CString' : undeclared identifier
    How can I use CString in Win32 application? I think I should include some header file. Which?
    Tahnk you very much.

  2. #2
    Registered User
    Join Date
    Mar 2003
    Location
    UK
    Posts
    170
    #include <afx.h>

  3. #3
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,267
    you are also going to need to link to the MFC library file as well.

  4. #4
    Registered User
    Join Date
    Jul 2004
    Posts
    15
    Which file?

Popular pages Recent additions subscribe to a feed
Website Security Test