Click here to Skip to main content
15,924,507 members
Home / Discussions / COM
   

COM

 
QuestionHow to use non .NET DLLs in .NET environment? Pin
Khang Nguyen8-Apr-05 5:30
Khang Nguyen8-Apr-05 5:30 
AnswerRe: How to use non .NET DLLs in .NET environment? Pin
rwestgraham8-Apr-05 14:40
rwestgraham8-Apr-05 14:40 
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 
Sorry, this stuff is complicated.

I have to make a correction to the above statements.

I said you could never get the HRESULT. That is not exactly true.

You can never get S_ level HRESULTS because VB discards them.

You can get E_ level HRESULTs in one of two ways:

If your COM object does not support rich error info, you could reconstruct the original E_ value if you know how to map the VB Err.Number back to an oreiginal E HRESULT. For example E_OUTOFMEMORY returns Error 7 in VB which can be mapped back to 8007000E.

If your COM object supports rich error info then the Err.Number property in VB will correspond exactly to the original HRESULT, i.e if you look at Hex(Err.Number) in VB the value will be 8007000E for E_OUTOFMEMORY.

But for what you were trying to do, i.e get an S_OK or S_FALSE in VB, the answer is still no, you cannot do it.

Robert
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 
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 

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.