Click here to Skip to main content
15,896,153 members
Home / Discussions / COM
   

COM

 
GeneralRe: COM Servers Pin
HakunaMatada8-Jun-06 17:28
HakunaMatada8-Jun-06 17:28 
GeneralRe: COM Servers [modified] Pin
Stephen Hewitt8-Jun-06 18:02
Stephen Hewitt8-Jun-06 18:02 
GeneralRe: COM Servers [modified] Pin
Roger Stoltz9-Jun-06 2:14
Roger Stoltz9-Jun-06 2:14 
GeneralRe: COM Servers Pin
Stephen Hewitt9-Jun-06 18:01
Stephen Hewitt9-Jun-06 18:01 
AnswerRe: COM Servers Pin
Aamir Butt12-Jun-06 4:07
Aamir Butt12-Jun-06 4:07 
Questioncan not put com class's entry in the registry Pin
yang__lee6-Jun-06 20:39
yang__lee6-Jun-06 20:39 
AnswerRe: can not put com class's entry in the registry Pin
Milton Karimbekallil9-Jun-06 23:33
Milton Karimbekallil9-Jun-06 23:33 
Questionconnection points and sink interface Pin
kk_mfc5-Jun-06 19:46
kk_mfc5-Jun-06 19:46 
Hi,

I had a COM server(USPServer) which fires some events and the client(DMPClient) which advises to this events will listen to these events.
server events: LinkStateChanged,MessageReceived



Usually we will write a Sink interface that is derived from the server event interface in the client side.

but the code in my project dosent have any sink interface that is derived from the server event interface.

I can see the advise part in the client.

in case of receiving the events in client side i had seen the following code.

<code>
::Invoke (DISPID dispidMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS FAR* pdispparams,
VARIANT FAR* pvarResult,EXCEPINFO FAR* pexcepinfo, UINT FAR* puArgErr)
{
METHOD_PROLOGUE (CUSPInterface, USPSink)

switch (dispidMember)
{
case 1:
pThis->OnLinkStateChangedEvent(pdispparams->rgvarg[0].iVal);
break;
case 2:
pThis->OnMessageReceivedEvent(pdispparams->rgvarg[1].iVal, pdispparams->rgvarg
[0].bstrVal);
break;
}

return S_OK;
}
</code>
Can any one please help me to understand the code.
and if any one has a sample code, please send me.
and why is he following this method instead of the regular method?
is there any advantage in following this method?


kk_mfc
AnswerRe: connection points and sink interface Pin
User 2155975-Jun-06 20:56
User 2155975-Jun-06 20:56 
QuestionRe: connection points and sink interface Pin
kk_mfc5-Jun-06 21:35
kk_mfc5-Jun-06 21:35 
GeneralRe: connection points and sink interface Pin
kk_mfc5-Jun-06 22:42
kk_mfc5-Jun-06 22:42 
AnswerRe: connection points and sink interface Pin
User 2155979-Jun-06 8:40
User 2155979-Jun-06 8:40 
QuestionParameter void** ppv Pin
_AnsHUMAN_ 4-Jun-06 21:01
_AnsHUMAN_ 4-Jun-06 21:01 
AnswerRe: Parameter void** ppv Pin
Michael Dunn5-Jun-06 7:07
sitebuilderMichael Dunn5-Jun-06 7:07 
GeneralRe: Parameter void** ppv Pin
User 2155975-Jun-06 7:45
User 2155975-Jun-06 7:45 
GeneralRe: Parameter void** ppv Pin
Stephen Hewitt5-Jun-06 14:23
Stephen Hewitt5-Jun-06 14:23 
GeneralRe: Parameter void** ppv [modified] Pin
User 2155975-Jun-06 14:27
User 2155975-Jun-06 14:27 
GeneralRe: Parameter void** ppv Pin
ThatsAlok5-Jun-06 19:25
ThatsAlok5-Jun-06 19:25 
Questionhow to get params from OleCreatePropetyFrame created property sheet? Pin
retinex2-Jun-06 4:34
retinex2-Jun-06 4:34 
QuestionC++.net and Acrobat Pin
Bassieeee2-Jun-06 0:15
Bassieeee2-Jun-06 0:15 
AnswerRe: C++.net and Acrobat Pin
guestcat4-Jun-06 23:39
guestcat4-Jun-06 23:39 
Questionmidl\oleaut32.dll : error MIDL2020 : error generating type library : LayOut failed : DIHPAiOCopyRestriction2 Pin
timsysangal1-Jun-06 23:00
timsysangal1-Jun-06 23:00 
QuestionOLDB connection or Excel Object Pin
Sandeep Akhare31-May-06 20:58
Sandeep Akhare31-May-06 20:58 
QuestionActiveX Threading Pin
Anthony988731-May-06 14:46
Anthony988731-May-06 14:46 
AnswerRe: ActiveX Threading Pin
Lim Bio Liong31-May-06 19:05
Lim Bio Liong31-May-06 19:05 

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.