Translating vc# to vc++ RRS feed

  • Question

  • Hello Everyone,
    I am trying to translate code from vc# to vc++.  This is the following code in vc#:


    private void DisplayText(object sender, EventArgs e)
    private void serialPort1_DataReceived(object sender, System.IO.Ports.SerialDataReceivedEventArgs e)
    RxString = serialPort1.ReadExisting();
    this.Invoke(new EventHandler(DisplayText)); <-----  this is my problem
    Below is a line in vc++
    RxString = serialPort1->ReadExisting();
    BeginInvoke(gcnew EvendHandler(DisplayText));   <--- this line doesnt compile - I am using vc++ 2010 (2008 too) express edition.

    I'll appreciate anybody help to translate that line properly.
    Thank you,

    • Moved by Shrikant Maske Thursday, July 30, 2009 2:06 PM Not related to Bookmark forum (From:Social Bookmarks Discussion Forum)
    Sunday, July 19, 2009 3:41 AM