Results 1 to 3 of 3

Thread: textbox->text = ? in managed C++

  1. #1

    Thread Starter
    Registered User jkw119's Avatar
    Join Date
    Oct 2001
    Location
    Pittsburgh
    Posts
    256

    textbox->text = ? in managed C++

    i have a textbox...

    *TextBox txtbox

    What i need to do is simply display in the textbox, some string, then a double.

    txtbox->text = "some number %d", num

    that is not correct above. what is the correct way to do so..

    thanks,

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    In managed C++ you can use System::String::Concat to concatenate strings and objects.

    Code:
    txtbox->Text = String::Concat(S"Some number ", num);
    The problem is that Managed C++ doesn't support the CLR way of operator overloading, only the C++ way.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    Registered User jkw119's Avatar
    Join Date
    Oct 2001
    Location
    Pittsburgh
    Posts
    256
    Thanks alot, that is what I needed.

    Jeff

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