• <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>
            隨筆 - 64, 文章 - 11, 評(píng)論 - 12, 引用 - 0
            數(shù)據(jù)加載中……

            2014-7<上>疑問

            如何調(diào)試COM DLL    
                  在“解決方案資源管理器”中,右擊組件項(xiàng)目并單擊快捷菜單上的“屬性”。<項(xiàng)目名稱>“屬性頁”對(duì)話框中,打開“配置屬性”文件夾并選定“調(diào)試”類別。在“命令”框中,鍵入如下內(nèi)容:dllhost.exe  在“命令參數(shù)”框中,鍵入?yún)?shù) /ProcessID,繼之以應(yīng)用程序 ID(library XXX)上的GUID。例如:/ProcessID:{3D14228C-FBE1-11D0-995D-0C04FD919C1} 單擊“確定”。這樣設(shè)置后就可以調(diào)試了。 如果客戶端是C#,再設(shè)置客戶端項(xiàng)目調(diào)試選項(xiàng)中可以調(diào)試非托管代碼。 總是出現(xiàn)"char * __stdcall _com_util::ConvertBSTRToString的錯(cuò)誤
            只要在某個(gè)文件中添加對(duì)comdef.h的包含就可以,這個(gè)頭文件會(huì)鏈接庫,僅包含comutil.h并不會(huì)鏈接相應(yīng)的庫。 7-27日:
            C# .net framework4.0 傳遞SAFEARRAY的問題。 I am able to call a COM interface method using SAFEARRAY(BSTR) as input. If I define instead a simple (containing only some BSTR-s fields) STRUCT to pass into the COM I get "[System.ArgumentException] = {"The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))" The call to my COM server is not made because as it seems the arguments from client does not match the expected arguments on server: E_INVALIDARG Here is my declaration in IDL: typedef enum UserEntityType { User, Group, IPAddress } UserEntityType; [ uuid(4786F77E-BA5F-4806-B224-12AA8601A5B1) ] typedef struct UserEntity { UserEntityType EntityType; BSTR Value; } UserEntity; [id(9)] HRESULT SetUsers([in] SAFEARRAY(UserEntity) input); The exception is thrown at run-time when a C# 4 client calls SetUsers(). solution:The problem was in the C# client that was using the exe COM server where SetUsers([in] SAFEARRAY(UserEntity) input) was defined. In order to fix this (at least for .NET 4.0) one has to change the following property of the imported COM server: Embed Interop Types = False

            posted on 2014-07-03 14:50 Robertxiao 閱讀(3191) 評(píng)論(0)  編輯 收藏 引用 所屬分類: 問題集錦

            久久影视综合亚洲| 精品国产婷婷久久久| 久久天天躁夜夜躁狠狠| 久久国语露脸国产精品电影| 中文字幕人妻色偷偷久久| 国产午夜精品理论片久久影视 | 久久se精品一区精品二区国产| 久久精品亚洲精品国产欧美| 青春久久| Xx性欧美肥妇精品久久久久久| 日韩va亚洲va欧美va久久| 久久久老熟女一区二区三区| 国产农村妇女毛片精品久久| 亚洲熟妇无码另类久久久| 国产高清国内精品福利99久久| 久久亚洲日韩看片无码| 精品人妻久久久久久888| 青春久久| 久久激情五月丁香伊人| 久久久久女人精品毛片| 中文精品99久久国产| 久久午夜电影网| 久久影院综合精品| 久久这里的只有是精品23| 国产精品伊人久久伊人电影| 色狠狠久久AV五月综合| 亚洲精品国产综合久久一线| 亚洲国产精品久久久久久| www.久久热| 精品蜜臀久久久久99网站| 久久久国产打桩机| 久久无码高潮喷水| 色8激情欧美成人久久综合电| 99久久精品国内| 久久九九全国免费| 激情伊人五月天久久综合| 亚洲AV无码久久寂寞少妇| 人妻无码中文久久久久专区| 成人午夜精品无码区久久| 婷婷五月深深久久精品| 波多野结衣中文字幕久久|