Click here to Skip to main content
15,890,717 members
Home / Discussions / COM
   

COM

 
GeneralRe: TROUBLE Passing BYTE Array from Client to COM OUTPROC Server Pin
K ARUN KUMAR18-May-10 19:02
K ARUN KUMAR18-May-10 19:02 
GeneralRe: TROUBLE Passing BYTE Array from Client to COM OUTPROC Server Pin
Stephen Hewitt18-May-10 19:17
Stephen Hewitt18-May-10 19:17 
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 
First note that the proxy-stub you built is creatable:
K ARUN KUMAR wrote:
[HKEY_CLASSES_ROOT\CLSID\{A12EAEC2-2B64-470B-93AF-EFE0855DD3AC}\InProcServer32]
@="D:\\VC++\\Sample Applications\\BytComp\\DebugPS\\BytCompPS.dll" "ThreadingModel"="Both"


But your interface isn't using it:

K ARUN KUMAR wrote:
[HKEY_CLASSES_ROOT\Interface\{A12EAEC2-2B64-470B-93AF-EFE0855DD3AC}\ProxyStubClsid32]
@="{00020424-0000-0000-C000-000000000046}"


{00020424-0000-0000-C000-000000000046} is the universal marshaller, not your proxy-stub ({A12EAEC2-2B64-470B-93AF-EFE0855DD3AC}).

Also I notice your interface is marked with [dual]. This means the interface has to be automation compatible and should only use a limited number of types (which doesn't include BYTE arrays).

Do you get warnings when you compile the IDL file? Did you ignore them?

Since you exported these keys you're free to tinker with them as they can easily be restored using the exported files.

Change this key:
[HKEY_CLASSES_ROOT\Interface\{A12EAEC2-2B64-470B-93AF-EFE0855DD3AC}\ProxyStubClsid32]
@="{00020424-0000-0000-C000-000000000046}"


So that it looks like this:
[HKEY_CLASSES_ROOT\Interface\{A12EAEC2-2B64-470B-93AF-EFE0855DD3AC}\ProxyStubClsid32]
@="{A12EAEC2-2B64-470B-93AF-EFE0855DD3AC}"


NOTE: Don't alter the exported files, make the changes in the registry. Alternatively copy the exported file, make the change in the copy, then double click the copy.
Steve

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

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.