Click here to Skip to main content
15,940,430 members
Home / Discussions / COM
   

COM

 
GeneralRe: TROUBLE Passing BYTE Array from Client to COM OUTPROC Server Pin
K ARUN KUMAR18-May-10 20:03
K ARUN KUMAR18-May-10 20:03 
GeneralRe: TROUBLE Passing BYTE Array from Client to COM OUTPROC Server Pin
Stephen Hewitt18-May-10 20:19
Stephen Hewitt18-May-10 20:19 
GeneralRe: TROUBLE Passing BYTE Array from Client to COM OUTPROC Server Pin
K ARUN KUMAR18-May-10 20:29
K ARUN KUMAR18-May-10 20:29 
GeneralRe: TROUBLE Passing BYTE Array from Client to COM OUTPROC Server Pin
Stephen Hewitt18-May-10 20:37
Stephen Hewitt18-May-10 20:37 
GeneralRe: TROUBLE Passing BYTE Array from Client to COM OUTPROC Server Pin
K ARUN KUMAR18-May-10 21:01
K ARUN KUMAR18-May-10 21:01 
GeneralRe: TROUBLE Passing BYTE Array from Client to COM OUTPROC Server Pin
Stephen Hewitt18-May-10 21:16
Stephen Hewitt18-May-10 21:16 
GeneralRe: TROUBLE Passing BYTE Array from Client to COM OUTPROC Server Pin
K ARUN KUMAR18-May-10 21:30
K ARUN KUMAR18-May-10 21:30 
GeneralRe: TROUBLE Passing BYTE Array from Client to COM OUTPROC Server Pin
Stephen Hewitt18-May-10 21:40
Stephen Hewitt18-May-10 21:40 
The problem is your interface is marked as an automation interface but it uses types that are not automation compatible. As I said, I'm sure the MIDL compiler would have warned you about this, and you should always investigate compiler warnings. The are a number of ways to fix this:

  1. Don't use an automation compatible interface. Remove the dual and all the [id] attributes, and derive from IUnknown instead of IDispatch. You will not need the IDispatchImp base class in you server implementation either.
  2. Add another interface to the object (which isn't dual and derives from IUnknown, as described above) to contain the non-automation compatible methods.
  3. Manually make the changes I described after RegisterTypeLib[^] makes the "wrong" ones. This is a hack though: why use an automation-compatible interface that automation clients will not be able to call?
  4. Give my posts good marks Wink | ;)

Steve

GeneralRe: TROUBLE Passing BYTE Array from Client to COM OUTPROC Server Pin
K ARUN KUMAR18-May-10 22:51
K ARUN KUMAR18-May-10 22:51 
QuestionProblem with ActiveX control Pin
NarVish17-May-10 1:44
NarVish17-May-10 1:44 
AnswerRe: Problem with ActiveX control Pin
Cool_Dev18-May-10 1:59
Cool_Dev18-May-10 1:59 
GeneralRe: Problem with ActiveX control Pin
NarVish21-May-10 0:05
NarVish21-May-10 0:05 
QuestionCan we call dynamically COM exposed methods inhertied from IUnknow? Pin
glitteringsound14-May-10 2:07
glitteringsound14-May-10 2:07 
QuestionWhy Exception occured getting address of COM function ? [modified] Pin
glitteringsound12-May-10 21:21
glitteringsound12-May-10 21:21 
Questionlanguage localization using XML in VC++ Pin
punyah20108-May-10 9:03
punyah20108-May-10 9:03 
AnswerRe: language localization using XML in VC++ Pin
Cool_Dev18-May-10 2:04
Cool_Dev18-May-10 2:04 
QuestionHow to read Tyupe Libraries(TLBs) in C#? Pin
glitteringsound5-May-10 20:08
glitteringsound5-May-10 20:08 
AnswerRe: How to read Tyupe Libraries(TLBs) in C#? Pin
«_Superman_»6-May-10 15:51
professional«_Superman_»6-May-10 15:51 
QuestionCoCreateInstance HResult is failing, getting error -2147221164 stating that Class is not registered. Pin
pallaka3-May-10 3:24
pallaka3-May-10 3:24 
AnswerRe: CoCreateInstance HResult is failing, getting error -2147221164 stating that Class is not registered. Pin
«_Superman_»3-May-10 11:22
professional«_Superman_»3-May-10 11:22 
AnswerRe: CoCreateInstance HResult is failing, getting error -2147221164 stating that Class is not registered. Pin
Vi25-May-10 21:30
Vi25-May-10 21:30 
QuestionAbout COM+ Pin
NetQuestions29-Apr-10 19:41
NetQuestions29-Apr-10 19:41 
AnswerRe: About COM+ Pin
Michel Godfroid1-May-10 7:56
Michel Godfroid1-May-10 7:56 
GeneralRe: About COM+ Pin
NetQuestions24-May-10 19:09
NetQuestions24-May-10 19:09 
QuestionProblem with Breakpoint when Debugging a COM interop API with .NET 4.0 Pin
Hallmanac26-Apr-10 15:46
Hallmanac26-Apr-10 15:46 

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.