• <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, 評論 - 12, 引用 - 0
            數(shù)據(jù)加載中……

            2014-7<上>疑問

            如何調(diào)試COM DLL    
                  在“解決方案資源管理器”中,右擊組件項目并單擊快捷菜單上的“屬性”。<項目名稱>“屬性頁”對話框中,打開“配置屬性”文件夾并選定“調(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è)置客戶端項目調(diào)試選項中可以調(diào)試非托管代碼。 總是出現(xiàn)"char * __stdcall _com_util::ConvertBSTRToString的錯誤
            只要在某個文件中添加對comdef.h的包含就可以,這個頭文件會鏈接庫,僅包含comutil.h并不會鏈接相應(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 閱讀(3200) 評論(0)  編輯 收藏 引用 所屬分類: 問題集錦

            久久婷婷五月综合国产尤物app| 久久91精品国产91| 久久se精品一区二区| 久久国产免费| 久久精品国产亚洲av麻豆小说| 99久久精品久久久久久清纯| 777午夜精品久久av蜜臀| 日本久久久精品中文字幕| 久久经典免费视频| 久久97久久97精品免视看秋霞 | 久久精品中文无码资源站| 亚洲国产精品婷婷久久| 久久久久波多野结衣高潮| 久久久久久国产a免费观看不卡| 亚洲αv久久久噜噜噜噜噜| 欧美久久亚洲精品| 久久香蕉综合色一综合色88| 久久精品国产99久久久| 人人狠狠综合久久88成人| 欧美午夜A∨大片久久 | 欧美亚洲国产精品久久| 久久99精品久久久久久9蜜桃 | 无码人妻少妇久久中文字幕蜜桃| 久久人搡人人玩人妻精品首页| 99久久精品免费看国产| 久久精品国产精品青草| 久久精品99久久香蕉国产色戒| 性色欲网站人妻丰满中文久久不卡| 18禁黄久久久AAA片| 一本色道久久综合| 国产亚洲精品久久久久秋霞 | 欧洲成人午夜精品无码区久久 | 国产成人精品久久二区二区| 午夜精品久久久久久毛片| 亚洲AV成人无码久久精品老人| 国内精品久久久久久久久电影网| 无码伊人66久久大杳蕉网站谷歌 | 亚洲国产精品无码久久| 国产亚洲综合久久系列| 久久国产精品久久国产精品| 国产精品久久久久影院色|