HRESULT is used as a return value to determine the success or failure of a function.
Questions tagged [hresult]
168 questions
2
votes
1 answer
Exception from HRESULT: 0x800A03EC for Excel in powershell
I am having the worst luck with this line of code...
$Myexcel.visible = $true
$Myworkbook = $Myexcel.workbooks.add()
$Sheet1 = $Myworkbook.worksheets.item(1)
$Sheet1.name = "Summary"
$Sheet1.Cells.item(3, 3) =…

iJabber
- 21
- 2
2
votes
3 answers
How to use HRESULT condition check in C++
HRESULT hr = S_OK; //initialization`
if (int i == 5)
{
hr = 1; //Is it correct usage?
}
if (hr == 1)
cout<<"The value of i is 5";
As I always heard HRESULT output in strings like E_TIMEOUT etc. whether it's correct to use a number like…

james
- 39
- 2
- 7
2
votes
2 answers
SSRS giving error as HResult E_FAIL has been returned from a call to a COM Component
When I run the SSRS report with data having 150 000 characters it gives error
HResult E_FAIL has been returned from a call to a COM Component
I am using the single textbox to display this data. For any other data it works fine. I have searched on…

Umesh D
- 253
- 2
- 5
- 18
2
votes
1 answer
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 different configuration (loading input).
So I put…

DynamicScope
- 695
- 9
- 26
2
votes
2 answers
Encoding HRESULT values: use FACILITY_ITF or set bit 29?
If I'm designing my own COM error codes that coexist with Microsoft's HRESULT values, should I set the facility code to FACILITY_ITF ("defined solely by the developer of the interface or function that returns the status code"), or should I set bit…

snips-n-snails
- 637
- 5
- 22
2
votes
1 answer
Excel IF statement results in error: Exception from HRESULT: 0x800A03EC
I am creating an excel report in C#. When I add a formula like below, everything works fine:
totalCellFormulaRange.Formula = "=SUM(AH7:AS7)"; //totalCellFormulaRange is a Range object from Microsoft.Office.Interop.Excel
But now when I try to add a…

Tumelo
- 301
- 3
- 18
2
votes
0 answers
How do I make catching generic IOExceptions reliably portable across platforms?
I was trying to make the below code work on .NET Standard 1.5, which implies it should be portable across all platforms .NET Standard 1.5 supports.
try
{
channel = new FileStream(path, FileMode.OpenOrCreate, FileAccess.Write,…

NightOwl888
- 55,572
- 24
- 139
- 212
2
votes
0 answers
HttpWebRequest maintenance and http web errors causing it to return "HRESULT E_FAIL" and "server not found"
I am iterating through a large list of objects (1503) and calling a save method on a ServiceProxy I have written. The service proxy uses the new networking stack in Silverlight 4 to call BeginGetRequestStream to start the process of asynchronously…

Ben
- 115
- 10
2
votes
1 answer
MySQL Notifier: Error subscribing to WMI Events: RPC_E_CALL_CANCELLED. Exception HRESULT: 0x80010002
At every startup in Windows I get an error message by MySQL Notifier:
Does anybody know how to get rid of this?
If this is because of Firewall, my question is if anybody has a solution, instead of turning Firewall off.

LowLevel
- 1,085
- 1
- 13
- 34
2
votes
1 answer
Issue with assigning HRESULT using CoInitializeEx
I am trying to use Microsoft's tutorial here to set up a COM connection for WMI programming. I have slightly modified the example code to fit my style. My code so far is as follows:
#include
#include
#include…

James Parsons
- 6,097
- 12
- 68
- 108
2
votes
2 answers
Identifing error: 0x800442B6, occurs when attempting to use COM component
On one particular computer I get an error that I don't get on any other computer when I attempt to create an instance of a COM object using .NET.
I don't get the error when I use the same COM component through VBA in Excel on this computer.
I've…

turnip_cyberveggie
- 151
- 11
2
votes
2 answers
Showing 'This folder is empty' background when my shell extension folder is empty
In my shell extension, I want to mimic explorer's behavior and show 'This folder is empty' message when in fact my folder is empty:
However, I can't accomplish it.
Using API Monitor, I see that when explorer refreshes an empty folder,…

Mugen
- 8,301
- 10
- 62
- 140
2
votes
2 answers
Fatal Error 0x80070000e in Visual Studio Debugger
I'm getting a message box pop up with the following message half way through a debugging session. This is happening intermittently but every time it blows, I have to restart VS2012 and IIS express which is pretty annoying and is losing 10 minutes…

pointyhat
- 167
- 1
- 1
- 10
2
votes
1 answer
Strong name signature could not be verified
I am deploying ASP.Net MVC 3 application on Windows 2008 R2 server. I published the application from Visual Studio 2010 using File System. I have two assemblies that have delay signed and have valid snk file. The deployment was done using xcopy as…

user1134489
- 25
- 1
- 1
- 6
2
votes
3 answers
Exe file Error HResult 0x8002000B, Invalid Index
Possible Duplicate:
How to run a C# .exe file on many computers?
I have a problem with my executable file. I made in C# windows forms to convert from txt to excel. Then in debug i took exe file there. In my computer with .NET 40 and Excel 2010 i…

Le Viet Hung
- 489
- 4
- 10
- 21