Click here to Skip to main content
15,920,633 members
Home / Discussions / COM
   

COM

 
QuestionC++ unable to access COM object, but VB can? Pin
Nathan Brown8-Jan-04 11:27
Nathan Brown8-Jan-04 11:27 
AnswerRe: C++ unable to access COM object, but VB can? Pin
Vi28-Jan-04 21:24
Vi28-Jan-04 21:24 
GeneralRe: C++ unable to access COM object, but VB can? Pin
Nathan Brown9-Jan-04 13:12
Nathan Brown9-Jan-04 13:12 
GeneralRe: C++ unable to access COM object, but VB can? Pin
Vi211-Jan-04 21:02
Vi211-Jan-04 21:02 
GeneralRe: C++ unable to access COM object, but VB can? Pin
Nathan Brown27-Jan-04 13:37
Nathan Brown27-Jan-04 13:37 
AnswerRe: C++ unable to access COM object, but VB can? Pin
Jörgen Sigvardsson9-Jan-04 9:57
Jörgen Sigvardsson9-Jan-04 9:57 
GeneralRe: C++ unable to access COM object, but VB can? Pin
Nathan Brown9-Jan-04 13:22
Nathan Brown9-Jan-04 13:22 
GeneralRe: C++ unable to access COM object, but VB can? Pin
Jörgen Sigvardsson9-Jan-04 13:34
Jörgen Sigvardsson9-Jan-04 13:34 
Nathan Brown wrote:
How does a proxy DLL work? More importantly, are there any examples of one available?

A proxy DLL contains code for the proxy and stub for one or more interfaces. Whenever you make a COM call across an apartment boundary (between "threads" and processes (local or network)), the data passed back and forth must be marshalled - especially between processes since they do not share memory. Now, there's a lot of details here which I will not go into (mainly because I don't I'm competent enough to give a good explanation, and a forum post is way too short). I advise you to pick up a book on the subject - Don Box' Essential COM is a good read.


Nathan Brown wrote:
If you are talking about something that came with the application I am trying to interface, then I don't know of any proxy DLLs.

Ah, so you haven't written this app yourself? I see. Well, I've read that sometimes the proxy/stub DLL is not needed. The system itself should be able to "compile a proxy/stub" on the fly for any OLE automation compatible interface described in a TLB (.DLL, .EXE, .OCX, or .TLB). But contrary to this statement (can't remember if I read it in MSDN or Don Box' Essential COM), it does not always work. So basically, for your particular problem (no source for the application/automation server), I do not know a solution. Frown | :(

However, the proxy/stub DLL I was talking are normally built with DLL-servers by default. Try generating such a project and take a look at the proxy/stub project which is automatically attached to the solution.

--
If there was a problem, Yo, I'll solve it!
Check out the hook while my DJ revolves it.

QuestionHow to bypass login window? Pin
SiddharthAtw7-Jan-04 18:23
SiddharthAtw7-Jan-04 18:23 
GeneralA property of a user defined ATL class Pin
Gush6-Jan-04 12:23
Gush6-Jan-04 12:23 
QuestionHow to use IWMPPluginUI::TranslateAccelerator? Pin
IGx896-Jan-04 5:07
IGx896-Jan-04 5:07 
GeneralTutorial on COM Pin
Omar Alvi5-Jan-04 4:45
Omar Alvi5-Jan-04 4:45 
GeneralRe: Tutorial on COM Pin
valikac5-Jan-04 4:59
valikac5-Jan-04 4:59 
GeneralCOM & VB.NET overloading Pin
izotov5-Jan-04 2:36
izotov5-Jan-04 2:36 
GeneralRe: COM & VB.NET overloading Pin
Heath Stewart5-Jan-04 13:41
protectorHeath Stewart5-Jan-04 13:41 
GeneralRe: COM & VB.NET overloading Pin
Jörgen Sigvardsson6-Jan-04 6:12
Jörgen Sigvardsson6-Jan-04 6:12 
GeneralRe: COM & VB.NET overloading Pin
Niels Penneman12-Jan-04 10:21
Niels Penneman12-Jan-04 10:21 
GeneralRe: COM & VB.NET overloading Pin
Jörgen Sigvardsson12-Jan-04 10:23
Jörgen Sigvardsson12-Jan-04 10:23 
GeneralRe: COM & VB.NET overloading Pin
Niels Penneman12-Jan-04 10:26
Niels Penneman12-Jan-04 10:26 
QuestionHow do I determine if a certain method exists on an interface? Pin
Gary Chapman5-Jan-04 2:16
Gary Chapman5-Jan-04 2:16 
AnswerRe: How do I determine if a certain method exists on an interface? Pin
Xiangyang Liu 刘向阳5-Jan-04 2:46
Xiangyang Liu 刘向阳5-Jan-04 2:46 
GeneralRe: How do I determine if a certain method exists on an interface? Pin
Bo Hunter5-Jan-04 14:39
Bo Hunter5-Jan-04 14:39 
GeneralRe: How do I determine if a certain method exists on an interface? Pin
Xiangyang Liu 刘向阳5-Jan-04 15:27
Xiangyang Liu 刘向阳5-Jan-04 15:27 
GeneralRe: How do I determine if a certain method exists on an interface? Pin
Vi25-Jan-04 22:00
Vi25-Jan-04 22:00 
GeneralRe: How do I determine if a certain method exists on an interface? Pin
Bo Hunter7-Jan-04 3:12
Bo Hunter7-Jan-04 3:12 

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.