Thread: gcnew is executed implicitely by some functions?

  1. #1
    Alessio Stella
    Join Date
    May 2008
    Location
    Italy, Bologna
    Posts
    251

    gcnew is executed implicitely by some functions?

    gcnew is executed implicitely by some functions?

    For instance the following code seems to work:
    Code:
       System::String^ TempStr;
       ..
       TempStr=String::Format("Bytes sent {0:D}\n",nbytes);
        textBox4->AppendText(TempStr);
    I did not have to perform in the .. section something like
    Code:
       TempStr= gcnew System::String("");
    Is that OK?

    Could you please answer also to this related thread
    http://cboard.cprogramming.com/showthread.php?t=105998
    ?

    Thank you!
    Last edited by mynickmynick; 08-06-2008 at 10:44 AM.

  2. #2
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,732
    Shouldn't this topic be on the C++ form?????

    ssharish

  3. #3
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    To answer the question: Yes, String::Format calls gcnew internally.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  4. #4
    Alessio Stella
    Join Date
    May 2008
    Location
    Italy, Bologna
    Posts
    251
    Quote Originally Posted by Magos View Post
    To answer the question: Yes, String::Format calls gcnew internally.
    Thank you
    Where is it easy to find this sort of info for String::Format , for other methods String:: and in general for other methods?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. calling functions within functions
    By edd1986 in forum C Programming
    Replies: 3
    Last Post: 03-29-2005, 03:35 AM
  2. Factory Functions HOWTO
    By GuardianDevil in forum Windows Programming
    Replies: 1
    Last Post: 05-01-2004, 01:41 PM
  3. Shell functions on Win XP
    By geek@02 in forum Windows Programming
    Replies: 6
    Last Post: 04-19-2004, 05:39 AM
  4. Passing data/pointers between functions #2
    By TankCDR in forum C Programming
    Replies: 1
    Last Post: 11-02-2001, 09:49 PM
  5. passing functions with variable
    By itld in forum C++ Programming
    Replies: 1
    Last Post: 10-30-2001, 11:43 PM