Click here to Skip to main content
15,899,632 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: Read data from a serial port Pin
hari_honey8-May-08 21:46
hari_honey8-May-08 21:46 
GeneralRe: Read data from a serial port Pin
CPallini11-May-08 21:54
mveCPallini11-May-08 21:54 
QuestionMinimize button does not work on Vista with Aero (using PropertySheets) Pin
howard_khan18-May-08 6:37
howard_khan18-May-08 6:37 
Questionerror compling dll Pin
alex7867-May-08 3:47
alex7867-May-08 3:47 
AnswerRe: error compling dll Pin
Cedric Moonen8-May-08 21:10
Cedric Moonen8-May-08 21:10 
QuestionFunctionality similar to mcafee site advisor browser plugin Pin
bikramthapa7-May-08 2:18
bikramthapa7-May-08 2:18 
QuestionCatching a WM_MOUSEMOVE from a popup menu opened from IE-toolbar Pin
amosygal6-May-08 23:42
amosygal6-May-08 23:42 
QuestionFire Event from Worker thread in ATL COM Loaded on a Web Page Pin
garammasala5-May-08 23:52
garammasala5-May-08 23:52 
Hi All,

I have developed a ATL COM which has a dependency , i have registered callback function of ATL COM to the dependency , which is ultimately invoked by one of the thread of the dependency and i am firing Event when callback funciton is invoked from callback function in ATL COM ,

Also i have implemented the way it is given the to fire event from Worker thread
including atlcmplimpl.h ..... etc..

The event is fired from the worker thread correctly but ..

My problem is in Internet Explorer , When ATL COM fires event once , the event is shown on internet explorer more than once as if event is fired many times... i.e each event is shown repeatedly and count is increasing every time..

I have tested ATL COM on VB Client it is working fine on the VB but it is giving problem in the internet explorer...

Here is the code snippet...

//EventCallBack is registered as call back function in depedency module
// It is static function of CCallMonitor as it was to be registered as
//callback function

int CCallMonitor::EventCallBack(void* pData)
{
HRESULT hRes = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);

MessageBox(NULL,TEXT("Fire Event Reached"),TEXT("OK"),MB_OK);

//g_CallMonitor is the pointer to the COM CLass

g_CallMonitor->Fire_IncomingCall((BSTR)Objbstr);

::CoUninitialize ();

MessageBox(NULL,TEXT("After Test Reached"),TEXT("OK"),MB_OK);

return S_OK;

}

MessageBox for debugging purpose only...

Please let me what is the problem with the same...

with regards
Abhiraj
QuestionAtlAdvise returns 0x80040201 [modified] Pin
Scorp1us1-May-08 8:28
Scorp1us1-May-08 8:28 
QuestionPopup Menu sends "UnInit" Before sending a command Pin
yytg1-May-08 4:43
yytg1-May-08 4:43 
QuestionC2440 Pin
T.RATHA KRISHNAN30-Apr-08 19:37
T.RATHA KRISHNAN30-Apr-08 19:37 
AnswerRe: C2440 Pin
Jörgen Sigvardsson1-May-08 0:14
Jörgen Sigvardsson1-May-08 0:14 
QuestionHow to use ATL COM dll in JavaScript? Pin
ritz123430-Apr-08 2:30
ritz123430-Apr-08 2:30 
AnswerRe: How to use ATL COM dll in JavaScript? Pin
led mike30-Apr-08 4:32
led mike30-Apr-08 4:32 
AnswerRe: How to use ATL COM dll in JavaScript? Pin
CPallini30-Apr-08 5:19
mveCPallini30-Apr-08 5:19 
GeneralRe: How to use ATL COM dll in JavaScript? Pin
ritz123430-Apr-08 18:41
ritz123430-Apr-08 18:41 
QuestionRe: How to use ATL COM dll in JavaScript? Pin
CPallini30-Apr-08 22:10
mveCPallini30-Apr-08 22:10 
AnswerRe: How to use ATL COM dll in JavaScript? Pin
ritz12341-May-08 3:06
ritz12341-May-08 3:06 
GeneralLoading a Dialog Resource from a different DLL Pin
PhilGoh29-Apr-08 2:30
PhilGoh29-Apr-08 2:30 
AnswerRe: Loading a Dialog Resource from a different DLL Pin
prasad_som30-Apr-08 4:16
prasad_som30-Apr-08 4:16 
QuestionHandle VC++ ATL COM Event in Java Script ?? [modified] Pin
garammasala28-Apr-08 2:46
garammasala28-Apr-08 2:46 
GeneralRe: Handle VC++ ATL COM Event in Java Script ?? Pin
Stephen Hewitt28-Apr-08 15:57
Stephen Hewitt28-Apr-08 15:57 
GeneralRe: Handle VC++ ATL COM Event in Java Script ?? Pin
garammasala28-Apr-08 17:42
garammasala28-Apr-08 17:42 
GeneralRe: Handle VC++ ATL COM Event in Java Script ?? Pin
Stephen Hewitt28-Apr-08 17:46
Stephen Hewitt28-Apr-08 17:46 
GeneralRe: Handle VC++ ATL COM Event in Java Script ?? Pin
garammasala28-Apr-08 20:43
garammasala28-Apr-08 20:43 

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.