hresult
Returning undocumented HRESULTS from standard COM interface methods?
What is the rule on returning undocumented HRESULTS from documented standard COM objects? i\'m looking at the documentation for IObjectWithSite.SetSite, which says i should return S_OK in all situati[详细]
2023-03-15 21:47 分类:问答COM `HRESULT` is wrapped into an Exception in .NET
(preliminary note: I\'开发者_StackOverflow中文版m not yet fully up to speed with the whole \'interop\' thing...)[详细]
2023-03-13 05:14 分类:问答How to use GetDHtmlDocument() in MFC programming?
I am trying to use HRESULT GetDHtmlDocument(IHTMLDocument2 **pphtmlDoc); function in MFC programming. Basically, I am trying to render GUI in a HTML View Dialog application (C++ w/ MFC) given di[详细]
2023-03-01 18:43 分类:问答E_ACCESSDENIED on CoCreateInstance, where it used to work
I have some code that used to work, but recently stopped.It\'s in an Adobe Reader Plugin, and the latest Reader version has a \"Protected Mode\" which causes my problem.[详细]
2023-02-18 15:26 分类:问答Finding HRESULT '-2146697191' Error message - clickonce setup error
I want to know what exactly 开发者_如何学PythonHRESULT error means? This is occuring when user is trying to download clickonce application from our server. Hence to figure what is the problem behind i[详细]
2023-02-15 13:44 分类:问答What does this macro do? __success(return >= 0) long
In the Windows header fil开发者_StackOverflow社区e WinNT.h, HRESULT is defines as follows: typedef __success(return >= 0) long HRESULT;[详细]
2023-01-25 04:36 分类:问答Passing HRESULT as a string on command line
I have a need to pass in an HRESULT value to a program as a command line argument. I had intended to do so by passing the hex value, e.g.:[详细]
2023-01-22 06:09 分类:问答Detecting the use of HRESULTs as bools
We have a big 开发者_StackOverflow社区body of code that was refactored so that stuff which was plain-old C++ is now COM.[详细]
2023-01-18 19:33 分类:问答How do I get HRESULT returns from libraries imported to c# with tlbimp.exe?
I am using th开发者_StackOverflow中文版e GMFBridge directshow filter from c# and the import library seems to discard the HRESULTs. i.e[详细]
2023-01-12 16:28 分类:问答Which HRESULT literal constant will fail the SUCCEEDED() macro?
Definition of SUCCEEDED(): #define SUCCEEDED(hr) (((HRESULT)(hr)) >= 0) Background: When an Ok button is clicked on a dialog, I need to return an HRESULT value hr such that SUCCEEDED(hr) is true.[详细]
2022-12-25 22:12 分类:问答