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

COM

 
Generalcannot register automatic a COM into Components Services Pin
alinilie14-Dec-03 10:54
alinilie14-Dec-03 10:54 
GeneralSending Events from a DLL Pin
Sid_smily12-Dec-03 7:21
Sid_smily12-Dec-03 7:21 
GeneralRe: Sending Events from a DLL Pin
Abhishek Srivastava12-Dec-03 22:21
Abhishek Srivastava12-Dec-03 22:21 
GeneralCOM/DCOM without ATL Pin
Kene12-Dec-03 3:40
Kene12-Dec-03 3:40 
GeneralRe: COM/DCOM without ATL Pin
valikac13-Dec-03 5:34
valikac13-Dec-03 5:34 
GeneralTo COM or not to COM, that is the question ! Pin
Paul Silvernail11-Dec-03 2:14
Paul Silvernail11-Dec-03 2:14 
GeneralRe: To COM or not to COM, that is the question ! Pin
Heath Stewart11-Dec-03 12:21
protectorHeath Stewart11-Dec-03 12:21 
GeneralHandling events with COM object as param Pin
NotProfessional10-Dec-03 8:51
NotProfessional10-Dec-03 8:51 
Hi,
I am well done by responding COM events with simple data types( say VTS_I4). However, on topic that is not covered anywhere (and I spent days looking) is when the event has a COM object as a parameter. Say for instance in your sample that the addition is not on 2 integers but on 2 matrixes. The OnAdditionDone event would therefore pass a IMatrix * obj (VT_DISPATCH) pointer instead of an integer (VT_I4).

How would you implement the event handler on the client side, and how would you actually start using the IMatrix pointer to access its members (tried everything I could think of, wither it doesn't compile or compiles but crashes, always get the 'first chance exception (OLEAUT32.DLL): 0xC0000005: Access Violation.). In other words, how to complete this:

void CCoCaller::OnAdditionDone(IMatrix *result)
{
// How to implement this so that it works:
BSTR str; result->get_Name(str);
}

MSDN gives 2 samples on how to implement IDispEventSimpleImpl and IDispEventImpl using Word and Excel veents, none of them show events that pass COM objects as parameters.

Any help would be very useful. Thanks a lot
Sleepy | :zzz: Sleepy | :zzz: Sleepy | :zzz:
GeneralRe: Handling events with COM object as param Pin
Abhishek Srivastava10-Dec-03 21:40
Abhishek Srivastava10-Dec-03 21:40 
GeneralRe: Handling events with COM object as param Pin
Steve S11-Dec-03 5:37
Steve S11-Dec-03 5:37 
GeneralRe: Handling events with COM object as param Pin
NotProfessional11-Dec-03 9:42
NotProfessional11-Dec-03 9:42 
GeneralRe: Handling events with COM object as param Pin
NotProfessional11-Dec-03 10:27
NotProfessional11-Dec-03 10:27 
GeneralRe: Handling events with COM object as param Pin
Vi211-Dec-03 2:54
Vi211-Dec-03 2:54 
GeneralIIS - Automation - COM - ASP Pin
tourdata9-Dec-03 23:46
tourdata9-Dec-03 23:46 
GeneralRe: IIS - Automation - COM - ASP Pin
Xiangyang Liu 刘向阳12-Dec-03 4:29
Xiangyang Liu 刘向阳12-Dec-03 4:29 
QuestionHow to call 16 bit component in a 32 bit Operationg system Pin
Mohan Babu D9-Dec-03 20:32
Mohan Babu D9-Dec-03 20:32 
AnswerRe: How to call 16 bit component in a 32 bit Operationg system Pin
Abhishek Srivastava9-Dec-03 22:05
Abhishek Srivastava9-Dec-03 22:05 
GeneralCOM and ATL Pin
Judah Gabriel Himango9-Dec-03 5:49
sponsorJudah Gabriel Himango9-Dec-03 5:49 
GeneralRe: COM and ATL Pin
Abhishek Srivastava9-Dec-03 21:52
Abhishek Srivastava9-Dec-03 21:52 
GeneralLooking for a 'RPC/COM Call Monitor' tool Pin
ohadp9-Dec-03 2:00
ohadp9-Dec-03 2:00 
QuestionDoes this COM dll look unregistered? Pin
gregcost5-Dec-03 1:50
gregcost5-Dec-03 1:50 
AnswerRe: Does this COM dll look unregistered? Pin
Stephane Rodriguez.5-Dec-03 2:47
Stephane Rodriguez.5-Dec-03 2:47 
GeneralRe: Does this COM dll look unregistered? Pin
gregcost5-Dec-03 5:47
gregcost5-Dec-03 5:47 
GeneralRe: Does this COM dll look unregistered? Pin
gregcost5-Dec-03 5:55
gregcost5-Dec-03 5:55 
GeneralRe: Does this COM dll look unregistered? Pin
Stephane Rodriguez.5-Dec-03 6:15
Stephane Rodriguez.5-Dec-03 6: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.