Click here to Skip to main content
15,917,455 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: ATL COM object not callable in ASP Pin
Brian Shifrin9-May-03 21:26
Brian Shifrin9-May-03 21:26 
GeneralRe: ATL COM object not callable in ASP Pin
Jörgen Sigvardsson13-May-03 9:46
Jörgen Sigvardsson13-May-03 9:46 
Generalstd::vector Pin
73Zeppelin9-May-03 15:59
73Zeppelin9-May-03 15:59 
GeneralRe: std::vector Pin
Tim Smith9-May-03 16:36
Tim Smith9-May-03 16:36 
GeneralRe: std::vector Pin
73Zeppelin9-May-03 17:36
73Zeppelin9-May-03 17:36 
GeneralRe: std::vector Pin
John M. Drescher9-May-03 17:00
John M. Drescher9-May-03 17:00 
GeneralRe: std::vector Pin
73Zeppelin9-May-03 17:41
73Zeppelin9-May-03 17:41 
GeneralMFC dialog containing ATL control that fires events... Pin
nebbish8-May-03 9:18
nebbish8-May-03 9:18 
So I've authored the activeX control using ATL and used the wizard to implement the connection point I added. Of course the wizard generated that header file, '<NameOfProject>CP.h', and in that header was the class: 'CProxy<INameOfDispInterface>Events'.

Now here's my dilema...

I want the event handler, that is a member function of the MFC dialog containing the control, to close and destroy the dialog. Unfortunately when that happens, the COleControlSite with the ATL control in it also get's destroyed, and then when the 'Fire_<Event1>' method returns from the call to 'pDispatch->Invoke' it tries to call release on the CComPtr it held pointing to the COleControlSite (which was just destroyed).........hence a memory access exception.

I'd love for someone to point out what I'm doing wrong, or perhaps another way to do this.

Ultimately all I care about is having an MFC dialog that can destroy itself based on some kind of event from a contained ATL control.


thanks,
nebbish

"The man who trades freedom for security does not deserve, nor will he ever receive either." -- Benjamin Franklin
GeneralIE Toolbar in ATL Pin
H.P.8-May-03 8:01
H.P.8-May-03 8:01 
GeneralFireing events from worker thread Pin
Sivakumar R8-May-03 2:08
Sivakumar R8-May-03 2:08 
GeneralRe: Fireing events from worker thread Pin
Ernest Laurentin8-May-03 4:22
Ernest Laurentin8-May-03 4:22 
Questionwriting data to a text file????????? Pin
xxhimanshu8-May-03 1:30
xxhimanshu8-May-03 1:30 
AnswerRe: writing data to a text file????????? Pin
Nick Parker10-May-03 11:38
protectorNick Parker10-May-03 11:38 
GeneralUsing new structure which inherits from Win struc in idl. file Pin
Nena19767-May-03 12:18
Nena19767-May-03 12:18 
GeneralUsing HashSet Pin
Alexandru Savescu7-May-03 2:05
Alexandru Savescu7-May-03 2:05 
GeneralRe: Using HashSet Pin
Joaquín M López Muñoz7-May-03 2:40
Joaquín M López Muñoz7-May-03 2:40 
GeneralRe: Using HashSet Pin
Alexandru Savescu7-May-03 2:56
Alexandru Savescu7-May-03 2:56 
GeneralRe: Using HashSet Pin
Joaquín M López Muñoz7-May-03 3:47
Joaquín M López Muñoz7-May-03 3:47 
GeneralRe: Using HashSet Pin
Alexandru Savescu7-May-03 4:51
Alexandru Savescu7-May-03 4:51 
QuestionHow to return more then one parameters in web control Pin
TianYang6-May-03 17:59
TianYang6-May-03 17:59 
GeneralWTL control Pin
alex.barylski6-May-03 12:05
alex.barylski6-May-03 12:05 
GeneralATL Error when builing release version Pin
Matt Gates6-May-03 10:42
Matt Gates6-May-03 10:42 
GeneralAdding WTL support to existing app Pin
Henrik Husted5-May-03 9:36
Henrik Husted5-May-03 9:36 
GeneralRe: Adding WTL support to existing app Pin
Michael Dunn5-May-03 17:50
sitebuilderMichael Dunn5-May-03 17:50 
GeneralRe: Adding WTL support to existing app Pin
Henrik Husted5-May-03 20:32
Henrik Husted5-May-03 20:32 

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.