• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            穩定盈利的期貨交易方法-量化趨勢交易

            alantop -專業量化投資者

            愛好:量化投資,逆向工程,滲透
            隨筆 - 595, 文章 - 0, 評論 - 921, 引用 - 0
            數據加載中……

            Demonstrates Downloading Data Asynchronously(用ATL異步下載數據的演示)

            程序代碼: http://www.shnenglu.com/Files/alantop/async.rar

            This sample creates a control that downloads data asynchronously from a URL. The control implements the IBindStatusCallback interface. Typically, you asynchronously download large binary objects or properties. This allows the control's user interface to remain unblocked during potentially lengthy network operations. The use of asynchronous downloading also gives the user a chance to abort the download. ATL uses WinInet functions internally to implement asynchronous downloading.

            這個例子建立了一個控件從一個URL里異步下載數據。這個控件實現了IBindStatusCallback接口。有代表性的,你異步下載大的數據和道具。這將保持在整個網絡長時間的網絡操作中,用戶的接口保持不被封鎖。異步下載可以給用戶提供中斷的機會。ATL用內建的WinInet函數實現異步下載。

            ASYNC creates a subclassed edit control with one property called URL. The URL property is a BSTR that represents a URL that points to data. The ASYNC sample uses the ATL CBindStatusCallback class to implement asynchronous downloading. When the control user sets the URL property, ASYNC creates a CBindStatusCallback object. The CBindStatusCallback::StartAsyncDownload method is then called and passed both the URL and a pointer to a callback function. This function, CAtlAsync::OnData, is called by the CBindStatusCallback object and is passed the binary data from the URL as it is received. CAtlAsync::OnData simply sends the received data to the subclassed edit control, where it is displayed.

            ASYNC建立一個子類化的edit控件,其有一個屬性關聯URL.URL屬性用BSTR代表。演示程序用CBindStatusCallback類實現異步下載。當控件用戶設置URL屬性,ASYNC建立一個CBindStatusCallback屬性。然后,CBindStatusCallback::StartAsyncDownload被調用,URL和一個指向回調函數的指針被傳遞給函數。CAtlAsync::OnDataCBindStatusCallback對象調用,并傳遞url接收到的二進制數據。CAtlAsync::OnData發送接收到的數據到被顯示的子類化控件中。

            Running the Sample

            Load the AtlAsync.htm file into your web browser. Type a URL into the edit control and press the Go button. This sets the ASYNC control's URL property to the URL you typed and starts the download. As data is downloaded, you will see it displayed in the ASYNC control.

            在瀏覽器中打開atlasync.htm文件。在edit控件鍵入網址,并選擇go.這將設置ASYNC控件的URL屬性并開始下載。當數據下載的時候,你可以看到它在async控件中顯示。

            For an example of how to subclass Windows controls using ATL, see the ATL SubEdit sample.

            怎樣用 ATL 子類化窗口控件,看 ATL subedit 例子。

            ?

            posted on 2006-05-30 23:42 AlanTop 閱讀(621) 評論(0)  編輯 收藏 引用 所屬分類: C++

            天天爽天天爽天天片a久久网| 精品国产一区二区三区久久蜜臀| 久久人人超碰精品CAOPOREN| www亚洲欲色成人久久精品| 久久99国产精品成人欧美| 久久久久亚洲AV成人网人人软件| 精品久久久无码人妻中文字幕| 亚洲va中文字幕无码久久不卡| 久久久久综合网久久| 久久有码中文字幕| 久久久久亚洲av无码专区导航| 66精品综合久久久久久久| 伊人久久大香线蕉AV一区二区| 久久精品无码午夜福利理论片| 成人精品一区二区久久| 99久久国产宗和精品1上映 | 精品久久人人做人人爽综合 | 久久国产精品久久精品国产| 伊人色综合久久天天| 久久中文骚妇内射| 青青久久精品国产免费看| 好久久免费视频高清| 成人综合久久精品色婷婷| 久久精品aⅴ无码中文字字幕重口| 九九久久99综合一区二区| 久久精品国产AV一区二区三区| 狠狠人妻久久久久久综合蜜桃| 欧美亚洲色综久久精品国产| 一本综合久久国产二区| 久久精品?ⅴ无码中文字幕| 国产精品久久久久久福利69堂| 亚洲va久久久噜噜噜久久| 日韩欧美亚洲综合久久影院Ds | 亚洲国产精品18久久久久久| 久久人人爽人人爽人人片AV麻豆 | 久久精品中文字幕无码绿巨人| 国产精品久久久久免费a∨| 久久久久久无码国产精品中文字幕 | 久久夜色精品国产亚洲av| 久久久久婷婷| 久久综合久久美利坚合众国|