Длина C ++ std :: string в байтах

    private voidForm_Load(object sender, EventArgs e)
    {
        MethodInvoker mk = delegate
        {
            //your job
        };
        mk.BeginInvoke(callbackfunction, null);
    }

    private void callbackfunction(IAsyncResult res)
    {
        // it will be called when your job finishes.
    }

use MethodInvoker - самый простой способ.

13
задан Lightness Races in Orbit 12 October 2011 в 16:39
поделиться