HRESULT is used as a return value to determine the success or failure of a function.
Questions tagged [hresult]
168 questions
0
votes
1 answer
webkite Error HRESULT E_FAIL c#
when i have
used this code
webKitBrowser1.StringByEvaluatingJavaScriptFromString("Document.GetElementById('id').InvokeMember('click')");
i get this message error
"Error HRESULT E_FAIL has been returned from a call to a COM
…
Anas Abdulkareem
- 101
- 1
- 5
0
votes
2 answers
NinjectControllerFactory FileLoadException Error
I tried create just example porject and I want use Ninject.I create NinjectControllerFactory.cs like this
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Ninject;
using…

Fatih Ayyıldız
- 1
- 2
0
votes
1 answer
E_NOINTERFACE when calling CreateDXGIFactory1
I am relatively new to C++ in general, and very new to Windows development.
I am writing a program that uses the DXGI library - it compiles just fine, but when I run the executable, the HRESULT from the CreateDXGIFactory1 comes out as 0x80004002, or…

javanix
- 1,270
- 3
- 24
- 40
0
votes
2 answers
COM Exception HRESULT: 0xC00D1325 in C# winForm
I have a code in C# WinForm that should be able to read the list of songs from a listBox and then play each song with windowsMediaPlayer (for some reasons I want to play the songs from the last item of the listBox to the first one ) .
here is the…

Bahareh LV
- 53
- 2
- 8
0
votes
1 answer
IDXGIFactory::CreateSwapChain() returns E_NOINTERFACE?
In the renderer I'm designing in DirectX11 I need to be able to create a swap chain at any time, however the method I use crashes right at the CreateSwapChain() call:
IDXGIDevice * device;
HR(d3ddevice->QueryInterface(__uuidof(IDXGIDevice),…

ulak blade
- 2,515
- 5
- 37
- 81
0
votes
0 answers
Hresult : An undetermined error occurred
I'm trying to load a shader file using the D3DX11CompileFromFile() function when I get the HRESULT error "An undetermined error occurred"( I'm using DXGetErrorDescription() to debug). The weird thing is that I can't find the error even listed in the…

Fredrik Boston Westman
- 349
- 1
- 6
- 16
0
votes
3 answers
Cryptic HRESULT errors
The following EndDraw() function returns an HRESULT error code:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd371924%28v=vs.85%29.aspx
The documentation specifies:
If the method succeeds, it returns S_OK. Otherwise, it returns an…

user974967
- 2,928
- 10
- 28
- 45
0
votes
1 answer
Calling unmanaged 32bit DLL exception occuring only on one user's computer: BadImageFormatException (Exception from HRESULT: 0x8007000B)
Our application is C# .Net 4 and calls an unmanaged 32bit DLL. It's been working fine and runs many machines (mostly 64bit Windows 7). However, I recently encountered one particular user on whose machine the program traps with…

fred
- 1
- 3
0
votes
1 answer
comexception error in c#
i want to write some datas into an excel file in visual studio 2010 premium but when i run my code, i take this error:
comexception was unhandled by user code
Exception from HRESULT: 0x800A03EC
my error in detail…

rockenpeace
- 1,011
- 5
- 18
- 29
0
votes
1 answer
SharePoint error whan adding user as site owner
I have a MOSS 2007 site which I'm an admin for. In the 'People and Groups' area for a site, I'm trying to add a user as a site owner. On the 'Add User' page, I add the name of the user and click 'OK', after which I get this totally useless…

Jason Evans
- 28,906
- 14
- 90
- 154
0
votes
1 answer
HResult 0x80040204 from IMediaObject::ProcessInput
I get this Hresult when i resample PCM Sound to a IEEE:Float Sound with DirectXMediaResampler.
Changing the bits per sample with the same sampling rate is no problem. Also resamppling from IEEE:Float to PCM.
This HResult is not documented in context…

Someone_else
- 1
- 1
0
votes
4 answers
Compiler not flagging incorrect return value for HRESULT
I just spent way too long trying to diagnose why, in the following snippet of code, the ProcessEvent() method seemed to be ignoring the false value I passed in for aInvokeEventHandler:
HRESULT
CEventManager::
Process(Event anEvent)
{
return…

LeopardSkinPillBoxHat
- 28,915
- 15
- 75
- 111
-1
votes
2 answers
Debugging COM Interop HResult codes (VSTO)
I have an Excel add-in firing an HRESULT 0x800401A8 error, when calling the getter of Worksheet.Parent.
I would be glad if anyone could let me know what the error might be, but more importantly and more generally, I would like to know how I can…

Ama
- 1,373
- 10
- 24
-1
votes
2 answers
How to Initialize HRESULT for SetMasterVolume?
#include
#include
#include
int main(){
ShellExecute(NULL, "open", "https://www.youtube.com/watch?v=zf2VYAtqRe0", NULL, NULL, SW_SHOWNORMAL);
HRESULT SetMasterVolume(1.0, NULL);
return();
}
Okay so…
user9372118
-1
votes
1 answer
result failed on or more arguments invalid
I get this error on
result = device->CreateBuffer(&vertexBufferDesc, &vertexData, &m_vertexBuffer);
it says invalid arguments
Im using directX11 and creating a vertex buffer class
Heres the code:
bool VertexBuffer::Init(ID3D11Device * device,…

Tim Roberts
- 75
- 5