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

COM

 
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 
GeneralRe: Handling events with COM object as param Pin
Abhishek Srivastava10-Dec-03 21:40
Abhishek Srivastava10-Dec-03 21:40 
Hi there ,
once i have tried the same also..and it worked fine.

Suppose i have to pass IInterface instance to the client thru a Event method ThrowInter(IInterface *iFace)

this is the code where i fired this event and passed the IInterface pointer.

IInterface *iFace;
CoCreateInstance(CLSID_Interface, NULL, CLSCTX_ALL, IID_IInterface, (void **) &iFace);
Fire_ThrowInter(iFace);



Now this is my client code where i caught the fired event and IInterface instance

void CContainerDlgDlg::OnThrowInterTinterface1(LPDISPATCH interfac)
{
IInterface *iFace=reinterpret_cast<iinterface *="">(interfac);
iFace->ShowMessage();
}

but in client i have to include the header file of IInterface.

and then simply reinterpret casting , i was able to access my IInterface methods and properties
Smile | :)
let me know if u r also doing the same Smile | :)



Abhishek Srivastava
Software Engg (VC++)
India ,Noida
Mobile no 9891492921 Smile | :)
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 
GeneralRe: Does this COM dll look unregistered? Pin
gregcost5-Dec-03 8:59
gregcost5-Dec-03 8:59 

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.