Click here to Skip to main content
15,925,661 members
Home / Discussions / COM
   

COM

 
QuestionGetting a link time error Pin
leanmean4-May-06 0:49
leanmean4-May-06 0:49 
AnswerRe: Getting a link time error Pin
guestcat4-May-06 1:22
guestcat4-May-06 1:22 
AnswerRe: Getting a link time error Pin
Roger Stoltz4-May-06 11:38
Roger Stoltz4-May-06 11:38 
QuestionError : 0x8007000e - Not enough storage is available to complete this operation. Pin
guestcat3-May-06 23:51
guestcat3-May-06 23:51 
AnswerRe: Error : 0x8007000e - Not enough storage is available to complete this operation. Pin
guestcat6-May-06 1:41
guestcat6-May-06 1:41 
QuestionAttach Method with SmartPointers causes problems marshaling UDTs? Pin
morenz3-May-06 23:26
morenz3-May-06 23:26 
AnswerRe: Attach Method with SmartPointers causes problems marshaling UDTs? Pin
Milton Karimbekallil4-May-06 5:33
Milton Karimbekallil4-May-06 5:33 
AnswerRe: Attach Method with SmartPointers causes problems marshaling UDTs? Pin
Roger Stoltz4-May-06 11:30
Roger Stoltz4-May-06 11:30 
How can the use of smart pointers cause problems with marshalling?
The call is made exactly the same way to the server and the type library is still the same. Am I missing something here?

Since you're mentioning IDispatch I guess that the interface in question is declared in the IDL-file as either dispinterface or has the oleautomation attribute set.
If this is the case, then Mil10's comments applies: you cannot pass UDTs through an automation interface unless you convert them into SafeArrays of e.g. char.
The universal marshaller can only handle types that can be represented with a VARIANT.

If you are indeed using a custom interface that doesn't derive from IDispatch you have to deal with the marshalling by yourself and also distribute and register the marshalling dll that contains the proxy/stub.
As I understood your execution environment, the server is located on another machine than the client. This means that the proxy/stub has to be registered on both machines, otherwise at least the marshalling won't work.

Hope this helps
--
Roger


It's suppose to be hard, otherwise anybody could do it!
GeneralRe: Attach Method with SmartPointers causes problems marshaling UDTs? Pin
Milton Karimbekallil4-May-06 18:33
Milton Karimbekallil4-May-06 18:33 
GeneralRe: Attach Method with SmartPointers causes problems marshaling UDTs? Pin
morenz4-May-06 21:43
morenz4-May-06 21:43 
AnswerRe: Attach Method with SmartPointers causes problems marshaling UDTs? Pin
Roger Stoltz4-May-06 22:42
Roger Stoltz4-May-06 22:42 
GeneralRe: Attach Method with SmartPointers causes problems marshaling UDTs? Pin
morenz4-May-06 23:39
morenz4-May-06 23:39 
AnswerRe: Attach Method with SmartPointers causes problems marshaling UDTs? Pin
Roger Stoltz5-May-06 1:26
Roger Stoltz5-May-06 1:26 
GeneralRe: Attach Method with SmartPointers causes problems marshaling UDTs? Pin
morenz5-May-06 3:34
morenz5-May-06 3:34 
GeneralRe: Attach Method with SmartPointers causes problems marshaling UDTs? Pin
Roger Stoltz5-May-06 4:24
Roger Stoltz5-May-06 4:24 
GeneralRe: Attach Method with SmartPointers causes problems marshaling UDTs? Pin
morenz5-May-06 4:30
morenz5-May-06 4:30 
QuestionLookup installed com components Pin
Hampus@foi3-May-06 21:57
Hampus@foi3-May-06 21:57 
AnswerRe: Lookup installed com components Pin
Stephen Hewitt3-May-06 22:06
Stephen Hewitt3-May-06 22:06 
AnswerRe: Lookup installed com components Pin
Laxman Auti4-May-06 3:40
Laxman Auti4-May-06 3:40 
QuestionActiveX control and COM dll Pin
csylesh3-May-06 2:23
csylesh3-May-06 2:23 
AnswerRe: ActiveX control and COM dll Pin
Milton Karimbekallil4-May-06 5:33
Milton Karimbekallil4-May-06 5:33 
QuestionTypes of DLL Pin
Smith#2-May-06 23:40
Smith#2-May-06 23:40 
AnswerRe: Types of DLL Pin
_AnsHUMAN_ 3-May-06 3:34
_AnsHUMAN_ 3-May-06 3:34 
QuestionDifference between static_cast and normal casting Pin
NiceNaidu2-May-06 2:30
NiceNaidu2-May-06 2:30 
AnswerRe: Difference between static_cast and normal casting Pin
guestcat2-May-06 3:20
guestcat2-May-06 3:20 

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.