Click here to Skip to main content
15,900,453 members
Home / Discussions / COM
   

COM

 
GeneralRe: CoCreateInstance Problem Pin
john563213-Nov-08 17:42
john563213-Nov-08 17:42 
QuestionHelp needed [ Problem in IDispatch::GetTypeInfo] Pin
mvkvibin11-Nov-08 19:13
mvkvibin11-Nov-08 19:13 
AnswerRe: Help needed [ Problem in IDispatch::GetTypeInfo] Pin
Vi213-Nov-08 1:38
Vi213-Nov-08 1:38 
GeneralRe: Help needed [ Problem in IDispatch::GetTypeInfo] Pin
mvkvibin13-Nov-08 22:14
mvkvibin13-Nov-08 22:14 
QuestionNeed to have a ClassFactory Pin
ShyamR11-Nov-08 18:44
ShyamR11-Nov-08 18:44 
QuestionReg:Output from Exe Method call Pin
swethasri11-Nov-08 18:13
swethasri11-Nov-08 18:13 
QuestionHow to retrieve document content or whole document on DocumentOpen Event Word Add-in Pin
PatilVijay9-Nov-08 19:49
PatilVijay9-Nov-08 19:49 
QuestionHow do you create and work a proxy used to Marshal an interface? (An IDropTarget to be precise) Pin
Code-o-mat9-Nov-08 11:11
Code-o-mat9-Nov-08 11:11 
Greetings!

What i am trying to do is to access the IDropTarget interface of another process. I have dug into this and have found out -and of course, correct me at any time if i am wrong- that marshaling seems to be the way to go. So my question is basicly: how?
I think i need to create or somehow obtain a proxy object for the interface and use that to marshal calls to the original IDropTarget. I used the OLE/COM Object Viewer (that comes with Visual Studio) to look at IDropTarget and checked out its "ProxyStubClsid32" which seems to be "PSFactoryBuffer", so i looked up the IPSFactoryBuffer interface. Now at this point what confused me is that under IDropTarget it says that the ClassID of the factory is "0x00000320, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46" while IPSFactoryBuffer seems to have "0xD5F569D0, 0x593B, 0x101A, 0xB5, 0x69, 0x08, 0x00, 0x2B, 0x2D, 0xBF, 0x7A", aren't these ClassIDs refering to the same thing?
Anyways, what i am guessing now is that i need to create/obtain an IPSFactoryBuffer, use its CreateProxy to create a proxy interface, connect that somehow to the IDropTarget sitting in the other process and issue calls to the proxy. But if i try to create an IPSFactoryBuffer with CoCreateInstance i get the error "Class not registered", i also tried to use CoGetClassObject with the same result. And even if i had a factory, how do i create a proxy object connected to the original IDropTarget? About the original droptarget i have the following information: it's address and the handle of a marshaling window which is -most likely- created by the RegisterDragDrop call.
Am i completely off the right path? COM is sometimes a bit confusing to me. Thanks in advance for any hints or kicks which could get me ahead.
QuestionError message "Overlapped I/O operation is in progress" Pin
Member 14340936-Nov-08 2:42
Member 14340936-Nov-08 2:42 
AnswerRe: Error message "Overlapped I/O operation is in progress" Pin
Randor 9-Nov-08 21:48
professional Randor 9-Nov-08 21:48 
QuestionSerial Port Simulation Pin
pierrecor5-Nov-08 21:40
pierrecor5-Nov-08 21:40 
AnswerRe: Serial Port Simulation Pin
Roger Stoltz5-Nov-08 22:05
Roger Stoltz5-Nov-08 22:05 
QuestionOutlook Addin Pin
Member 36453113-Nov-08 6:03
Member 36453113-Nov-08 6:03 
AnswerRe: Outlook Addin Pin
Rajasekharan Vengalil4-Nov-08 10:19
Rajasekharan Vengalil4-Nov-08 10:19 
AnswerRe: Outlook Addin Pin
Randor 5-Nov-08 10:30
professional Randor 5-Nov-08 10:30 
QuestionNot sure how to do this(or if you can), COM object and vb6 and c++ stuff Pin
Matthew Cash1-Nov-08 11:42
Matthew Cash1-Nov-08 11:42 
AnswerRe: Not sure how to do this(or if you can), COM object and vb6 and c++ stuff Pin
Rajasekharan Vengalil4-Nov-08 10:15
Rajasekharan Vengalil4-Nov-08 10:15 
GeneralRe: Not sure how to do this(or if you can), COM object and vb6 and c++ stuff Pin
Matthew Cash4-Nov-08 18:48
Matthew Cash4-Nov-08 18:48 
QuestionCOM/DCOM singleton behavior not working [modified] Pin
ToriHino200830-Oct-08 11:31
ToriHino200830-Oct-08 11:31 
Questionbatch file writting commands Pin
coloradopad28-Oct-08 17:57
coloradopad28-Oct-08 17:57 
QuestionISpoolerHook Pin
Dr. Kelwin28-Oct-08 14:47
Dr. Kelwin28-Oct-08 14:47 
QuestionEditable datagrid validation. Pin
udaykatakam27-Oct-08 9:36
udaykatakam27-Oct-08 9:36 
QuestionHow to regsvr32 ***.ocx successful? Pin
huangdingjun25-Oct-08 16:29
huangdingjun25-Oct-08 16:29 
AnswerRe: How to regsvr32 ***.ocx successful? Pin
Wes Aday25-Oct-08 19:00
professionalWes Aday25-Oct-08 19:00 
GeneralRe: How to regsvr32 ***.ocx successful? Pin
huangdingjun27-Oct-08 1:26
huangdingjun27-Oct-08 1:26 

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.