• <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 閱讀(3190) 評論(0)  編輯 收藏 引用 所屬分類: 問題集錦

            久久精品毛片免费观看| 亚洲中文久久精品无码ww16| 久久se精品一区二区| 好属妞这里只有精品久久| 国产成人无码精品久久久久免费| 国产精品无码久久四虎| 久久99久国产麻精品66| 四虎国产精品免费久久5151| 久久久99精品成人片中文字幕 | 亚洲色大成网站WWW久久九九| 久久精品无码专区免费青青| 久久精品国产清自在天天线| 国产69精品久久久久9999APGF| 久久精品国产99国产精偷| 亚洲精品国产第一综合99久久| 国产综合久久久久| 亚洲AⅤ优女AV综合久久久| 国产Av激情久久无码天堂| 久久亚洲中文字幕精品一区| av国内精品久久久久影院| 青青草原综合久久大伊人| 国产精品成人久久久久久久| 久久久亚洲欧洲日产国码二区 | 亚洲熟妇无码另类久久久| 狠狠久久综合| 久久无码av三级| 蜜臀av性久久久久蜜臀aⅴ| 午夜精品久久久久久影视riav| 国产女人aaa级久久久级| 久久精品成人免费看| 精品熟女少妇a∨免费久久| 老男人久久青草av高清| 午夜视频久久久久一区| 亚洲七七久久精品中文国产| 青青热久久国产久精品| 亚洲AⅤ优女AV综合久久久| 久久婷婷人人澡人人| 午夜精品久久久久久久无码| 国产69精品久久久久99尤物| 青青草原综合久久大伊人精品| 91久久精一区二区三区大全|