CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: char to CString

  1. #1
    Join Date
    Apr 1999
    Posts
    12

    char to CString

    Hi!
    How can i convert a char (mychar[24]) to a CString
    please help me


  2. #2
    Join Date
    Nov 1998
    Posts
    5

    Re: char to CString

    CString str(myChar).

    or

    CString str;
    str = CString(myChar);

    regards

    xiaolong wu


  3. #3
    Join Date
    Apr 1999
    Location
    Malaysia
    Posts
    224

    Re: char to CString

    char ch[24];
    CString str;
    ..
    ..
    str.Format("%s",ch);
    ..

    Hello World!!!

  4. #4
    Join Date
    May 1999
    Posts
    37

    Re: char to CString

    CString Str;
    char dStr[25] = "Blah";
    Str = dStr;


  5. #5
    Join Date
    May 1999
    Location
    Malaysia
    Posts
    99

    Re: char to CString

    strcpy(mychar, mystring);

    //thats all!!!!


    ty

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured