Click here to Skip to main content
15,916,030 members
Home / Discussions / COM
   

COM

 
GeneralExcel automation for starters Pin
Zizilamoroso3-Jun-02 6:50
Zizilamoroso3-Jun-02 6:50 
GeneralRe: Excel automation for starters Pin
2-Jul-02 2:58
suss2-Jul-02 2:58 
GeneralATL COM DLL and Bitmaps Pin
Ranjan Banerji1-Jun-02 19:37
Ranjan Banerji1-Jun-02 19:37 
GeneralRe: ATL COM DLL and Bitmaps Pin
Ranjan Banerji2-Jun-02 6:16
Ranjan Banerji2-Jun-02 6:16 
GeneralRe: ATL COM DLL and Bitmaps Pin
Todd.Harvey20-Aug-02 11:13
Todd.Harvey20-Aug-02 11:13 
GeneralWindows Protected Storage using "IPStorage" class Pin
David Lau1-Jun-02 8:22
David Lau1-Jun-02 8:22 
GeneralWTL ScrollView scrolling problem! Pin
ramjan1-Jun-02 5:25
ramjan1-Jun-02 5:25 
QuestionSCODE or HRESULT or...? Pin
Member 9631-May-02 9:16
Member 9631-May-02 9:16 
Should an MFC ActiveX control be designed to retun SCODES or HRESULTS to indicate status of a method? I'm not talking about critical problems, just to indicate failure.

From my understanding they should fire an error (in a custom method, throw in a property setting method) if it's a critical problem, but what about those little day to day things like an invalid parameter or to indicate the status of a procedure such as updating a database record?

I tried returning a VARIANT_BOOL, but it always evaluates to TRUE at the container end, in both an mfc dialog app and a vb test app, even when explictly set to VARIANT_FALSE and comparing the return agains VARIANT_FALSE (making no assumptions about its actual value).

I've pored over approximately 200 documents/web pages mostly on the net and in the MSDN documentation and they are completely conflicting on this issue. Generally they have completely different standpoints depending upon what era they come from.

Some say SCODES are a holdout from the times of the proverbial ancients (1995?), but VC7 Add method wizard only lists SCODE as a return type, not HRESULT.

Some docs say they are the same and interchangeable, others say SCODES are 16 bits and HRESULTS 32, other docs say SCODES are 64 bit and HRESULT 32!!!!

Some docments say that all ActiveX objects should return only HRESULTS and some say SCODES only.

If they are the same why are there functions to convert and SCODE into an HRESULT in the platform sdk etc etc. It goes on, but does anyone know the definitive answer?Unsure | :~
AnswerRe: SCODE or HRESULT or...? Pin
soptest31-May-02 9:42
soptest31-May-02 9:42 
AnswerRe: SCODE or HRESULT or...? Pin
Tim Smith31-May-02 10:28
Tim Smith31-May-02 10:28 
GeneralRe: SCODE or HRESULT or...? Pin
Member 9631-May-02 10:31
Member 9631-May-02 10:31 
GeneralRe: SCODE or HRESULT or...? Pin
soptest31-May-02 13:26
soptest31-May-02 13:26 
GeneralGIT and the FTM Pin
Philippe Mori31-May-02 4:09
Philippe Mori31-May-02 4:09 
GeneralRe: GIT and the FTM Pin
soptest31-May-02 9:04
soptest31-May-02 9:04 
GeneralRe: GIT and the FTM Pin
Philippe Mori14-Jun-02 3:46
Philippe Mori14-Jun-02 3:46 
GeneralW2A query Pin
Nish Nishant30-May-02 1:07
sitebuilderNish Nishant30-May-02 1:07 
GeneralRe: W2A query Pin
Prem Kumar30-May-02 7:48
Prem Kumar30-May-02 7:48 
GeneralRe: W2A query Pin
Nish Nishant30-May-02 15:02
sitebuilderNish Nishant30-May-02 15:02 
GeneralRe: W2A query Pin
soptest30-May-02 7:59
soptest30-May-02 7:59 
GeneralRe: W2A query Pin
Nish Nishant30-May-02 15:04
sitebuilderNish Nishant30-May-02 15:04 
GeneralATL DLL-server problem Pin
Hans Ruck29-May-02 2:21
Hans Ruck29-May-02 2:21 
GeneralRe: ATL DLL-server problem Pin
-Dy29-May-02 5:43
-Dy29-May-02 5:43 
GeneralMS Excel automation Pin
28-May-02 23:01
suss28-May-02 23:01 
GeneralRe: MS Excel automation Pin
Amit Dey30-May-02 19:19
Amit Dey30-May-02 19:19 
QuestionHow to get HTML code from MSHTML? Pin
28-May-02 13:29
suss28-May-02 13:29 

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.