Click here to Skip to main content
15,921,660 members
Home / Discussions / COM
   

COM

 
QuestionWeb Control Development Pin
kent_plaza8-Feb-06 22:36
kent_plaza8-Feb-06 22:36 
QuestionHow to convert ATL COM DLL to ATL COM EXE Pin
Balkrishna Talele8-Feb-06 21:49
Balkrishna Talele8-Feb-06 21:49 
AnswerRe: How to convert ATL COM DLL to ATL COM EXE Pin
Lim Bio Liong9-Feb-06 3:58
Lim Bio Liong9-Feb-06 3:58 
QuestionI can't make C++ client access the C# server Pin
Fisico8-Feb-06 19:59
Fisico8-Feb-06 19:59 
AnswerRe: I can't make C++ client access the C# server Pin
Fisico8-Feb-06 21:51
Fisico8-Feb-06 21:51 
GeneralRe: I can't make C++ client access the C# server Pin
Lim Bio Liong9-Feb-06 3:50
Lim Bio Liong9-Feb-06 3:50 
QuestionPassing data to an out of process server. Pin
mtwombley8-Feb-06 9:14
mtwombley8-Feb-06 9:14 
AnswerRe: Passing data to an out of process server. Pin
Roger Stoltz8-Feb-06 21:19
Roger Stoltz8-Feb-06 21:19 
mtwombley wrote:
How do I declare the method in myServer to receive a pointer to the link list?


Simply: You cannot without writing the marshalling code for it by yourself. (Complex warning!)
This is due to the fact that the out-of-process server is just that, out of the process and hence executes in another address space.

If you are using an interface that uses the universal marshaler, i.e. it has the 'oleautomation' attribute in the .idl-file, you are limited to the data types that are supported by that marshaler.
If this is the case I suggest that you pack your linked list into a multi-dimensional SafeArray of VARIANTs where each VARIANT contains a SafeArray of VT_UI1 that represent the data of an element in your linked list.
This is similar to providing binary data to the server and you have to develop some kind of 'protocol' of how to interpret the binary data in the server so that it can rebuild the linked list.

Another way is to pass one element in your list for each call to the server in a SafeArray of VT_UI1 where you have to use the same 'protocol' as above for unpacking the list element data.
Since the server is out of process, this way could be a performance issue. If the list contains a lot of elements this could really slow things down, but if the list is rather small this way is easier to write the code for.
That's for you to decide.

Hope this helps
--
Roger


It's supposed to be hard, otherwise anybody could do it!
QuestionHow to subscribe to SENS events from a COM DLL? Pin
ChrisRudd8-Feb-06 1:50
ChrisRudd8-Feb-06 1:50 
QuestionClient connect to COM sink - if sink app is killed - how detect? Pin
pschiff7-Feb-06 16:41
pschiff7-Feb-06 16:41 
QuestionActiveX DLL in VC++ Pin
MrChefman7-Feb-06 1:10
MrChefman7-Feb-06 1:10 
QuestionShared Add-In for MS Office does not affect at all Pin
czaval6-Feb-06 20:40
czaval6-Feb-06 20:40 
QuestionTrouble with mshflxgd.ocx in ASP Pin
bmorion6-Feb-06 5:39
bmorion6-Feb-06 5:39 
QuestionEvent consumers for WMI classes Pin
abhiramsss6-Feb-06 0:43
abhiramsss6-Feb-06 0:43 
QuestionMultiple instances were creating while using Singleton COM Server(Exe Server) Pin
srubuvas5-Feb-06 21:40
srubuvas5-Feb-06 21:40 
QuestionWindows Update Agent (WUA) API Pin
amdopteron4-Feb-06 7:38
amdopteron4-Feb-06 7:38 
QuestionRelated to Web Browser Control Pin
mysorian3-Feb-06 14:12
professionalmysorian3-Feb-06 14:12 
QuestionI need some help about COM.. Pin
Yuwraj3-Feb-06 1:19
Yuwraj3-Feb-06 1:19 
AnswerRe: I need some help about COM.. Pin
Roger Stoltz7-Feb-06 1:44
Roger Stoltz7-Feb-06 1:44 
GeneralRe: I need some help about COM.. Pin
Jörgen Sigvardsson7-Feb-06 11:38
Jörgen Sigvardsson7-Feb-06 11:38 
AnswerRe: I need some help about COM.. Pin
Malli_S14-Feb-06 18:13
Malli_S14-Feb-06 18:13 
QuestionInk with inkobj.dll and classic ASP Pin
realmontanakid2-Feb-06 23:23
realmontanakid2-Feb-06 23:23 
QuestionSolidus Pin
LiquidSilk1-Feb-06 7:00
LiquidSilk1-Feb-06 7:00 
Questionrelated to thunderbird extension Pin
baldha rakesh31-Jan-06 18:52
baldha rakesh31-Jan-06 18:52 
QuestionTroubleshooting System.Runtime.InteropServices.COMException Pin
mysorian31-Jan-06 5:15
professionalmysorian31-Jan-06 5:15 

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.