• <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)  編輯 收藏 引用 所屬分類: 問題集錦

            久久久精品视频免费观看| 色偷偷偷久久伊人大杳蕉| 大美女久久久久久j久久| 久久美女人爽女人爽| 免费一级做a爰片久久毛片潮| 一本久久综合亚洲鲁鲁五月天亚洲欧美一区二区 | 尹人香蕉久久99天天拍| 国产L精品国产亚洲区久久| 午夜精品久久久久9999高清| 91视频国产91久久久| 久久国产色AV免费看| 久久精品一区二区| 久久这里有精品视频| 亚洲αv久久久噜噜噜噜噜| 国产精品免费看久久久香蕉| 漂亮人妻被中出中文字幕久久| 成人久久综合网| 久久久久99这里有精品10| 久久久国产精品网站| 日韩AV无码久久一区二区| 久久久久国色AV免费看图片| 72种姿势欧美久久久久大黄蕉 | 人妻无码αv中文字幕久久| 久久亚洲欧美日本精品| 伊人久久久AV老熟妇色| 久久涩综合| Xx性欧美肥妇精品久久久久久| 伊人久久大香线蕉av不变影院| 久久只这里是精品66| 久久精品亚洲欧美日韩久久| 国产成人精品久久亚洲| 日本久久久久久中文字幕| 久久精品国产亚洲一区二区| 亚洲中文久久精品无码ww16| 麻豆久久久9性大片| 日韩十八禁一区二区久久| 99热成人精品免费久久| 亚洲国产天堂久久综合网站| 韩国三级大全久久网站| 久久综合久久综合久久| 99久久精品国产一区二区|