Click here to Skip to main content
16,004,927 members
Home / Discussions / COM
   

COM

 
GeneralRe: How to use non .NET DLLs in .NET environment? Pin
Anonymous9-Apr-05 10:40
Anonymous9-Apr-05 10:40 
GeneralWriting COM object for C++ and VB Pin
Anonymous6-Apr-05 1:07
Anonymous6-Apr-05 1:07 
GeneralRe: Writing COM object for C++ and VB Pin
rwestgraham6-Apr-05 9:15
rwestgraham6-Apr-05 9:15 
GeneralRe: Writing COM object for C++ and VB Pin
Anonymous8-Apr-05 4:27
Anonymous8-Apr-05 4:27 
GeneralRe: Writing COM object for C++ and VB Pin
rwestgraham8-Apr-05 10:40
rwestgraham8-Apr-05 10:40 
GeneralRe: Correction to the above Pin
rwestgraham8-Apr-05 11:47
rwestgraham8-Apr-05 11:47 
GeneralRe: Correction to the above Pin
Anonymous11-Apr-05 0:02
Anonymous11-Apr-05 0:02 
GeneralRe: Correction to the above Pin
rwestgraham11-Apr-05 9:53
rwestgraham11-Apr-05 9:53 
Anonymous wrote:
If I want to support VB clients as well, what I really need to do is to provide an output parameter that both VB and C++ clients can check, and I can forget about using S_OK and S_FALSE if my clients maybe VB.

Yes you can provide an output parameter that indicates if the method call succeeded or failed, but VB will not distinguish between S_OK and S_FALSE.


Anonymous wrote:
Now I see that VB clients cannot do this. They cannot test for S_OK, they can't have a value returned but can only test for an error for example E_FAIL.

They can test for an error only on an E_ code. Yes.

They can also have a value returned as a [retval] parameter.

So you have two choices. You can return a parameter, or you can return an E_ code if the function call fails.

I would use an E_ code.

Robert
GeneralProblem using ATL Object in other ATL Server Pin
andreasf5-Apr-05 20:26
andreasf5-Apr-05 20:26 
GeneralIHTMLDocument2 mouse handler Pin
Kharfax5-Apr-05 2:07
Kharfax5-Apr-05 2:07 
GeneralOutlook object library and windows service.. Pin
Muhammad Irfan Azam4-Apr-05 19:41
Muhammad Irfan Azam4-Apr-05 19:41 
QuestionFlash ActiveX MFC Control. Secure? Pin
RobotIntestines4-Apr-05 19:00
RobotIntestines4-Apr-05 19:00 
QuestionDLL and EXE files? Pin
123dotnet4-Apr-05 18:45
123dotnet4-Apr-05 18:45 
Generallinking to office-help Pin
sampad_m4-Apr-05 7:55
sampad_m4-Apr-05 7:55 
GeneralRe: linking to office-help Pin
rwestgraham7-Apr-05 12:33
rwestgraham7-Apr-05 12:33 
GeneralRe: linking to office-help Pin
sampad_m13-Apr-05 23:19
sampad_m13-Apr-05 23:19 
GeneralControl the Systemtray Pin
Anonymous2-Apr-05 5:30
Anonymous2-Apr-05 5:30 
GeneralRe: Control the Systemtray Pin
Anonymous2-Apr-05 21:17
Anonymous2-Apr-05 21:17 
Questionhow to call a function like "HRESULT test([in]byte* aaa);" using VBScript Pin
samfromcn31-Mar-05 15:19
samfromcn31-Mar-05 15:19 
AnswerRe: how to call a function like "HRESULT test([in]byte* aaa);" using VBScript Pin
rwestgraham31-Mar-05 18:27
rwestgraham31-Mar-05 18:27 
GeneralCookie read/write in COM Pin
Member 172086231-Mar-05 6:44
Member 172086231-Mar-05 6:44 
GeneralRe: Cookie read/write in COM Pin
Mike Dimmick31-Mar-05 10:24
Mike Dimmick31-Mar-05 10:24 
GeneralRe: Cookie read/write in COM Pin
Member 172086231-Mar-05 10:34
Member 172086231-Mar-05 10:34 
GeneralRe: Cookie read/write in COM Pin
Anonymous5-Apr-05 20:31
Anonymous5-Apr-05 20:31 
GeneralRe: Cookie read/write in COM Pin
1212121212116-Jun-06 1:49
1212121212116-Jun-06 1:49 

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.