sCandal2

This is a discussion on sCandal2 within the Windows Programming forums, part of the Platform Specific Boards category; Hello! If I create MFC application I can use CString without problems. But now I try to create Win32 application. ...

  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
    169
    #include <afx.h>

  3. #3
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,246
    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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21