Click here to Skip to main content
15,902,848 members
Home / Discussions / COM
   

COM

 
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 
GeneralIs it necessary to Implement class factory interface Pin
Omar Alvi5-Jan-04 1:39
Omar Alvi5-Jan-04 1:39 
GeneralRe: Is it necessary to Implement class factory interface Pin
Vi25-Jan-04 22:06
Vi25-Jan-04 22:06 
GeneralOut-of-proc weirdness: Case Closed Pin
Jörgen Sigvardsson4-Jan-04 23:33
Jörgen Sigvardsson4-Jan-04 23:33 
Solution: Compile and register proxy DLL. Blush | :O

I am curious though as to what proxy I got back in the client process. One would imagine QueryInterface() should bite me when I try to query for an interface for which it, obviously, cannot proxy. It seemed as if it was giving me a proxy for a totally different (but class related) interface - vtable order and parameter signatures seemed to matter. Other methods than DoOperation worked if and only if they matched another interface's vtable order/method signature. Eek! | :eek:




This is my scenario:
I have an exe automation server. I register an object in the running object table. The object exposes this interface:
[ ... ] interface IY : IDispatch {
   [id(y)] DoOperation(); 
}
 
[ ... ] interface IX : IDispatch {
   [propget, id(x)] Y([out, retval] IY** ppY);
}


Registration of the object in the exe server works just fine, and so does acquiring the object in the client application. The call to IX::get_Y() works without flaws as well. However, calls do IY::DoOperation fails miserably. It crashes in an instance at 0x00000000 - it tries to execute code at that adress..

Sounds like the proxy object has a screw loose. Unsure | :~ Has anybody dealt with a similar problem before? If so, care to share a solution?

--
You copy and paste yourself into my brain.
You always find your way back into my brain.

GeneralReleasing IDirectinputdevice interface Pin
Manju4-Jan-04 21:50
Manju4-Jan-04 21:50 
GeneralRe: Releasing IDirectinputdevice interface Pin
JJeffrey7-Jan-04 14:27
JJeffrey7-Jan-04 14:27 
GeneralOutlook Rule programming Pin
nightcoder4-Jan-04 7:14
nightcoder4-Jan-04 7:14 
GeneralUsing Word i nC# Pin
Stephane David3-Jan-04 5:43
Stephane David3-Jan-04 5:43 
GeneralImplentation of Pin
SiddharthAtw2-Jan-04 1:54
SiddharthAtw2-Jan-04 1:54 
GeneralRe: Implentation of Pin
Heath Stewart3-Jan-04 8:19
protectorHeath Stewart3-Jan-04 8:19 
GeneralRe: Implentation of Pin
Anonymous3-Jan-04 19:19
Anonymous3-Jan-04 19:19 
QuestionHow to bypass login window? Pin
SiddharthAtw31-Dec-03 0:03
SiddharthAtw31-Dec-03 0:03 
AnswerRe: How to bypass login window? Pin
valikac2-Jan-04 11:48
valikac2-Jan-04 11:48 
GeneralRe: How to bypass login window? Pin
SiddharthAtw2-Jan-04 18:20
SiddharthAtw2-Jan-04 18:20 
Generalhelp in an active x control Pin
safee ullah30-Dec-03 18:52
safee ullah30-Dec-03 18:52 
GeneralRe: help in an active x control Pin
bryce30-Dec-03 19:13
bryce30-Dec-03 19:13 
GeneralRe: help in an active x control Pin
Abhishek Srivastava30-Dec-03 19:34
Abhishek Srivastava30-Dec-03 19:34 
QuestionHow to develop pluggable application? Pin
Anonymous30-Dec-03 11:06
Anonymous30-Dec-03 11:06 
AnswerRe: How to develop pluggable application? Pin
Tristan Rhodes30-Dec-03 13:46
Tristan Rhodes30-Dec-03 13:46 
GeneralPassing CRichEditCtrl pointer to COM Pin
BazM30-Dec-03 10:08
BazM30-Dec-03 10:08 
GeneralRe: Passing CRichEditCtrl pointer to COM Pin
BazM31-Dec-03 3:02
BazM31-Dec-03 3:02 

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.