• <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
            數據加載中……

            2014-7<上>疑問

            如何調試COM DLL    
                  在“解決方案資源管理器”中,右擊組件項目并單擊快捷菜單上的“屬性”。<項目名稱>“屬性頁”對話框中,打開“配置屬性”文件夾并選定“調試”類別。在“命令”框中,鍵入如下內容:dllhost.exe  在“命令參數”框中,鍵入參數 /ProcessID,繼之以應用程序 ID(library XXX)上的GUID。例如:/ProcessID:{3D14228C-FBE1-11D0-995D-0C04FD919C1} 單擊“確定”。這樣設置后就可以調試了。 如果客戶端是C#,再設置客戶端項目調試選項中可以調試非托管代碼。 總是出現"char * __stdcall _com_util::ConvertBSTRToString的錯誤
            只要在某個文件中添加對comdef.h的包含就可以,這個頭文件會鏈接庫,僅包含comutil.h并不會鏈接相應的庫。 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 閱讀(3196) 評論(0)  編輯 收藏 引用 所屬分類: 問題集錦

            精品久久久久久成人AV| 久久久无码精品亚洲日韩按摩 | 久久精品国内一区二区三区| 久久精品无码午夜福利理论片| 精品人妻久久久久久888| 精品久久久久久无码人妻热| 尹人香蕉久久99天天拍| 亚洲欧美日韩久久精品第一区| 精品久久久噜噜噜久久久| 久久精品国产精品亚洲下载| 亚洲人成电影网站久久| 精品久久久无码人妻中文字幕豆芽 | 狠狠色丁香久久婷婷综| 久久久久国产精品麻豆AR影院| 久久久久久久精品成人热色戒| 久久99国产精品久久久| 77777亚洲午夜久久多喷| 久久久精品波多野结衣| 99久久精品费精品国产一区二区| 久久久久国产一区二区| 久久久久亚洲AV片无码下载蜜桃 | 欧美久久综合九色综合| 久久国产精品99国产精| 久久人妻无码中文字幕| 嫩草影院久久国产精品| 久久午夜无码鲁丝片| 精品国产乱码久久久久软件| 久久久久久A亚洲欧洲AV冫 | 久久亚洲sm情趣捆绑调教| 国产精品久久久久久久久久免费| 欧美午夜精品久久久久免费视| 色99久久久久高潮综合影院| 国产亚州精品女人久久久久久 | 久久久久亚洲av成人网人人软件 | 99久久精品国产一区二区蜜芽 | 国产成人无码精品久久久久免费 | 久久噜噜电影你懂的| 精品精品国产自在久久高清| 国产亚洲精品美女久久久| 久久久久亚洲av无码专区喷水 | 婷婷久久综合九色综合98|