Click here to Skip to main content
15,897,371 members
Home / Discussions / COM
   

COM

 
GeneralDCOM Pin
Anonymous30-Nov-04 1:32
Anonymous30-Nov-04 1:32 
GeneralRe: DCOM Pin
User 21559730-Nov-04 18:28
User 21559730-Nov-04 18:28 
GeneralDocking deskband on the right side of the window Pin
kumarbp30-Nov-04 0:05
kumarbp30-Nov-04 0:05 
Questionis this even possible? Pin
vista2729-Nov-04 17:30
vista2729-Nov-04 17:30 
AnswerRe: is this even possible? Pin
Steve S29-Nov-04 22:47
Steve S29-Nov-04 22:47 
GeneralRe: is this even possible? Pin
vista2730-Nov-04 3:58
vista2730-Nov-04 3:58 
GeneralRe: is this even possible? Pin
vista2730-Nov-04 4:10
vista2730-Nov-04 4:10 
GeneralHandling Events in COM takes time Pin
arun140529-Nov-04 7:22
arun140529-Nov-04 7:22 
Hi Folks,

I am trying to add EVENT HANDLING in the COM component (attributed) in Visual C++ 7.1. But, it takes a lot of time (around 250 ms on my machine) while executing "__raise" method call for each event. This is a serious problem for me as a typical operation in my program throws around 50 events and when 250 ms are clubbed together for these 50 events, the overall operation takes hell lot of time)

Following is the event related code I have added in my program:

*****************************************************************

[
dispinterface,
nonextensible,
uuid("4700BB55-A9D2-46f8-A453-EF8F9658E56F"),
helpstring("_IMyEvents Interface")
]
__interface _IMyEvents
{
[id(1), helpstring("method OnDataChanged")] HRESULT OnDataChanged();
}

class ATL_NO_VTABLE CMyData : public IMyData
{
public:
CMyData ();
virtual ~CMyData ();

__event __interface _IMyEvents;
HRESULT FireOnDataChanged()
{
__raise OnDataChanged(); // THIS CALL TAKES TIME
}

----------
----------
}

*****************************************************************

I would look forward to your suggestions & comments.

Regards,
Arun.

GeneralOne more clue: Pin
arun140529-Nov-04 22:13
arun140529-Nov-04 22:13 
GeneralDebug assertion failed! Pin
tpndtbk29-Nov-04 3:27
tpndtbk29-Nov-04 3:27 
GeneralTAB not working properly in WebBrowser control embedded in a modeless dialog box encapsulated within a ATL DLL Pin
sashishk26-Nov-04 1:08
sashishk26-Nov-04 1:08 
QuestionHow to throw exception Pin
tpndtbk25-Nov-04 23:31
tpndtbk25-Nov-04 23:31 
AnswerRe: How to throw exception Pin
ThatsAlok26-Nov-04 0:13
ThatsAlok26-Nov-04 0:13 
GeneralRe: How to throw exception Pin
tpndtbk26-Nov-04 1:13
tpndtbk26-Nov-04 1:13 
AnswerRe: How to throw exception Pin
sashishk26-Nov-04 1:20
sashishk26-Nov-04 1:20 
GeneralRe: How to throw exception Pin
tpndtbk26-Nov-04 3:59
tpndtbk26-Nov-04 3:59 
GeneralRe: How to throw exception Pin
ThatsAlok29-Nov-04 17:18
ThatsAlok29-Nov-04 17:18 
AnswerRe: How to throw exception Pin
Manuele Sicuteri2-Dec-04 5:44
Manuele Sicuteri2-Dec-04 5:44 
GeneralCreating a POP3Proxy like Norton AntiVir Email scanning (pls help) Pin
mmathers25-Nov-04 19:36
mmathers25-Nov-04 19:36 
Generalexporting datagrid details into word Pin
sujithapril25-Nov-04 12:49
sujithapril25-Nov-04 12:49 
Generalinserting problem with OLEDB Pin
seans00225-Nov-04 4:55
seans00225-Nov-04 4:55 
GeneralRe: inserting problem with OLEDB Pin
Steve S29-Nov-04 22:50
Steve S29-Nov-04 22:50 
GeneralRe: inserting problem with OLEDB Pin
seans00230-Nov-04 3:30
seans00230-Nov-04 3:30 
QuestionHow to use variable types defined in a COM in Matlab Pin
tpndtbk24-Nov-04 1:12
tpndtbk24-Nov-04 1:12 
Generalabout "access is denied" at DCOM Pin
pig123423-Nov-04 21:01
pig123423-Nov-04 21:01 

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.