Thread: Formatting CStrings

  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,981
    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, 08:24 PM
  2. dos game help
    By kwm32 in forum Game Programming
    Replies: 7
    Last Post: 03-28-2004, 06:28 PM
  3. Formatting Standards
    By subdene in forum A Brief History of Cprogramming.com
    Replies: 20
    Last Post: 11-22-2002, 04:36 PM
  4. formatting dos game
    By Jhanoosh in forum Game Programming
    Replies: 1
    Last Post: 11-18-2002, 07:26 PM
  5. Problem Formatting double numbers.
    By chaps67 in forum C++ Programming
    Replies: 1
    Last Post: 09-19-2001, 09:20 AM