¿Cómo descifrar el valor de retorno de hora "-1072875847" devuelto por una función COM?

I am using VC++. the hr return value returned by a COM function is "-1072875847". Can anyone kindly let me know how to decipher the hr values to their actual meaning. specifically What does "-1072875847" stand for ?

Gracias de antemano.

preguntado el 31 de julio de 12 a las 10:07

looks kind of like an integer-overflow even though the number does not fit any bit-number I know. what were you doing, expecting? -

The Visual Studio debugger does a reasonable job of interpreting HRESULT codes for you. Something to consider in future. -

2 Respuestas

los codigos son HRESULT values and are better read in hex. This one is 0xC00D36B9, which is Media Foundation Error "An object ran out of media types to suggest therefore the requested chain of streaming objects cannot be completed." (MF_E_NO_MORE_TYPES).

Respondido 31 Jul 12, 10:07

Thank you for the quick help. But can you plz let me know how did you map the hex error code "0xC00D36B9' to be a Media foundation error? How did u figure out this is MF_E_NO_MORE_TYPES ? It would be very helpful if u also let me know the procedure?? Thanks. - codelover

Esto debería funcionar,

std::cout << "Error: " << std::hex << hrStatus << std::endl; 

And you need to go to the header file mferror.h and search for it. Or google it. Good luck

Respondido 18 ago 12, 02:08

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.