Click here to Skip to main content
15,860,943 members
Home / Discussions / COM
   

COM

 
GeneralRe: Quering a COM object in .net Pin
cable beach20-Oct-10 13:26
cable beach20-Oct-10 13:26 
GeneralRe: Quering a COM object in .net Pin
Lim Bio Liong24-Oct-10 20:40
Lim Bio Liong24-Oct-10 20:40 
GeneralRe: Quering a COM object in .net Pin
cable beach25-Oct-10 13:17
cable beach25-Oct-10 13:17 
QuestionShell Extension Pin
A_Fa15-Oct-10 18:47
A_Fa15-Oct-10 18:47 
QuestionIHTMLElement2 functions crash in IE7 when scrolling browser control programmatically Pin
castielle_alana15-Oct-10 1:38
castielle_alana15-Oct-10 1:38 
AnswerRe: IHTMLDocument2 functions crash in IE7 when scrolling browser control programmatically Pin
castielle_alana15-Oct-10 1:44
castielle_alana15-Oct-10 1:44 
QuestionCoInitialize return code Pin
alex__b14-Oct-10 23:30
professionalalex__b14-Oct-10 23:30 
AnswerRe: CoInitialize return code [modified] Pin
Sauro Viti14-Oct-10 23:46
professionalSauro Viti14-Oct-10 23:46 
Are you sure about the returned HRESULT?
According to the CoInitialize Function (COM)[^], the possible results could be the ones below (see A lot of HRESULT codes...[^] for their numeric values):


  • E_INVALIDARG = 0x80070057 = -2147024809
  • E_OUTOFMEMORY = 0x8007000E = -2147024882
  • E_UNEXPECTED = 0x8000FFFF = -2147418113
  • S_OK = 0x00000000 = 0
  • S_FALSE = 0x00000001 = 1
  • RPC_E_CHANGED_MODE = 0x80010106 = -2147417850


Then it seems that 3 is not a possible result; not only, I was not able to find a description for it anyway, according to Interpreting HRESULT Values[^], such a value doesn't indicates a failure (because the most significant bit is not set).

In your application are you testing for specific values or are you using the SUCCEEDED() macro? When using COM is preferable to always use that macro to distinguish between success and failure...

modified on Friday, October 15, 2010 5:52 AM

GeneralRe: CoInitialize return code Pin
alex__b15-Oct-10 0:05
professionalalex__b15-Oct-10 0:05 
QuestionInvoke methods in OCX in c# Pin
Viratsaran11-Oct-10 20:18
Viratsaran11-Oct-10 20:18 
AnswerRe: Invoke methods in OCX in c# Pin
«_Superman_»13-Oct-10 20:31
professional«_Superman_»13-Oct-10 20:31 
QuestionConvert document to PDF format Pin
hemananthan15-Sep-10 19:29
hemananthan15-Sep-10 19:29 
AnswerRe: Convert document to PDF format Pin
Member 45243333-Jul-11 22:40
Member 45243333-Jul-11 22:40 
GeneralRe: Convert document to PDF format Pin
Nitin K. Kawale12-Jul-11 0:34
professionalNitin K. Kawale12-Jul-11 0:34 
QuestionGetting an access to idispatch member of idispatch interface Pin
Altankhuu11-Sep-10 21:25
Altankhuu11-Sep-10 21:25 
AnswerRe: Getting an access to idispatch member of idispatch interface Pin
«_Superman_»12-Sep-10 19:21
professional«_Superman_»12-Sep-10 19:21 
GeneralRe: Getting an access to idispatch member of idispatch interface Pin
Altankhuu19-Sep-10 21:56
Altankhuu19-Sep-10 21:56 
AnswerRe: Getting an access to idispatch member of idispatch interface Pin
Lim Bio Liong26-Oct-10 1:38
Lim Bio Liong26-Oct-10 1:38 
QuestionreportAppFactory.OpenDocument throws Invalid Cast exception (No such interfaces supported) [modified] Pin
amitcoder836-Sep-10 17:54
amitcoder836-Sep-10 17:54 
AnswerCrosspost - ignore Pin
Richard MacCutchan6-Sep-10 21:37
mveRichard MacCutchan6-Sep-10 21:37 
QuestionHow to send NULL to a IUnknown** parameter when COM object is surrogate hosted Pin
Per Nilsson2-Sep-10 19:58
Per Nilsson2-Sep-10 19:58 
AnswerRe: How to send NULL to a IUnknown** parameter when COM object is surrogate hosted Pin
tolw2-Sep-10 20:33
tolw2-Sep-10 20:33 
GeneralRe: How to send NULL to a IUnknown** parameter when COM object is surrogate hosted Pin
Per Nilsson2-Sep-10 20:42
Per Nilsson2-Sep-10 20:42 
AnswerRe: How to send NULL to a IUnknown** parameter when COM object is surrogate hosted [modified] Pin
tolw2-Sep-10 21:16
tolw2-Sep-10 21:16 
GeneralRe: How to send NULL to a IUnknown** parameter when COM object is surrogate hosted Pin
Per Nilsson2-Sep-10 23:07
Per Nilsson2-Sep-10 23:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.