Re: CString

Discussion in 'C++' started by Default User, Jan 16, 2009.

  1. Default User

    Default User Guest

    Carl Forsman wrote:

    > why the following gets error
    >
    > #include <iostream>
    > #include <string.h>
    > #include <string>
    > using std::cout;
    > using std::endl;
    >
    >
    > int main()
    > {
    >
    >
    > CString idle_cmd_on = "aaaa";
    >
    >
    > }
    >
    > 1>..\..\myCode\string.cpp(21) : error C2065: 'CString' : undeclared
    > identifier


    CString is not a standard C++ type. You are likely missing the correct
    header.




    Brian
     
    Default User, Jan 16, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    4,607
  2. yeye yaya

    I hate cstring!!!

    yeye yaya, Jul 11, 2003, in forum: C++
    Replies:
    7
    Views:
    2,749
    Stuart Golodetz
    Jul 11, 2003
  3. Rajesh Garg

    Why is CString not preferred

    Rajesh Garg, Jul 22, 2003, in forum: C++
    Replies:
    11
    Views:
    814
    Mike Wahler
    Jul 24, 2003
  4. Markus Hämmerli
    Replies:
    6
    Views:
    7,887
    Peter van Merkerk
    Sep 4, 2003
  5. John Smith

    Parsing char array to CString

    John Smith, Sep 6, 2003, in forum: C++
    Replies:
    4
    Views:
    7,261
    Pat McCormack
    Sep 9, 2003
Loading...

Share This Page