Formatting CStrings

This is a discussion on Formatting CStrings within the C++ Programming forums, part of the General Programming Boards category; Hi How do I format a type defined as: typedef UINT8 A[248]; into a CString to display it in a ...

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

    Formatting CStrings

    Hi
    How do I format a type defined as:
    typedef UINT8 A[248];
    into a CString to display it in a MessageBox in CE?

    Thanks

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,674
    Code:
    A a = "Hello World";
    
    CString str;
    str.Format(L"%S", a);
    gg

  3. #3
    Registered User
    Join Date
    Jul 2004
    Posts
    5
    thanks - got it

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Formatting 64 bit integers
    By Dino in forum C++ Programming
    Replies: 6
    Last Post: 02-05-2008, 07:24 PM
  2. dos game help
    By kwm32 in forum Game Programming
    Replies: 7
    Last Post: 03-28-2004, 05:28 PM
  3. Formatting Standards
    By subdene in forum A Brief History of Cprogramming.com
    Replies: 20
    Last Post: 11-22-2002, 03:36 PM
  4. formatting dos game
    By Jhanoosh in forum Game Programming
    Replies: 1
    Last Post: 11-18-2002, 06:26 PM
  5. Problem Formatting double numbers.
    By chaps67 in forum C++ Programming
    Replies: 1
    Last Post: 09-19-2001, 09:20 AM

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