Click here to Skip to main content
15,903,817 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: ATL and _pAtlModule-->Lock() failure. Pin
eXeonical..6-Aug-06 23:06
eXeonical..6-Aug-06 23:06 
QuestionErase elements while iterating on a map Pin
vikramlinux3-Aug-06 20:27
vikramlinux3-Aug-06 20:27 
AnswerRe: Erase elements while iterating on a map Pin
Zac Howland4-Aug-06 3:40
Zac Howland4-Aug-06 3:40 
AnswerRe: Erase elements while iterating on a map Pin
Michael Dunn4-Aug-06 14:06
sitebuilderMichael Dunn4-Aug-06 14:06 
QuestionATL application using activeX Pin
CheerioMaster3-Aug-06 2:22
CheerioMaster3-Aug-06 2:22 
AnswerRe: ATL application using activeX Pin
Rob Caldecott3-Aug-06 3:34
Rob Caldecott3-Aug-06 3:34 
GeneralRe: ATL application using activeX Pin
CheerioMaster3-Aug-06 3:58
CheerioMaster3-Aug-06 3:58 
QuestionValidity of CWndClassInfo content Pin
xLobo231-Jul-06 0:27
xLobo231-Jul-06 0:27 
Hi,

I've encountered decent issue with validity of CWndClassInfo structure of ATL's CWindowImpl. Suppose following scenario:

1. There is a control class derived from ATL's CWindowImpl and rich edit (available via RichEdit20.dll)
2. This control is instantiated - RichEdit20.dll is loaded, CWndClassInfo gets initialized (this time only, as a static content of our class), control gets created
3. Control is destroyed and the dll gets unloaded.
4. Control is instantiated again - dll gets loaded again, to different base address this time. No reinitialization of CWndClassInfo occurs, as it is static and 'valid' from last time.
5. Application crashes as it tries to use rich edit's window procedure (through CWndClassInfo, containing outdated information)

I 'solved' this by clearing m_atom member of CWndClassInfo explicitely; in such case CWndClassInfo gets reinitialized in #4. My knowledge of ATL is fairly limited, but I don't expect this to be correct solution, of course.

Where is the problem here? Should I invalidate the CWndClassInfo in some 'standard way'? Or should the dll not get unloaded at all?

Thx. for any hints D'Oh! | :doh:
QuestionShould I learn ATL/COM now? Pin
CPP_Student30-Jul-06 14:59
CPP_Student30-Jul-06 14:59 
AnswerRe: Should I learn ATL/COM now? Pin
CPP_Student30-Jul-06 15:47
CPP_Student30-Jul-06 15:47 
AnswerRe: Should I learn ATL/COM now? Pin
Kevin McFarlane31-Jul-06 6:12
Kevin McFarlane31-Jul-06 6:12 
GeneralRe: Should I learn ATL/COM now? [modified] Pin
CPP_Student31-Jul-06 7:52
CPP_Student31-Jul-06 7:52 
AnswerRe: Should I learn ATL/COM now? Pin
Zac Howland31-Jul-06 8:32
Zac Howland31-Jul-06 8:32 
GeneralRe: Should I learn ATL/COM now? Pin
Kevin McFarlane31-Jul-06 9:11
Kevin McFarlane31-Jul-06 9:11 
GeneralRe: Should I learn ATL/COM now? Pin
Zac Howland31-Jul-06 9:24
Zac Howland31-Jul-06 9:24 
GeneralRe: What I am trying to do [modified] Pin
CPP_Student31-Jul-06 10:33
CPP_Student31-Jul-06 10:33 
GeneralRe: What I am trying to do Pin
Zac Howland31-Jul-06 10:57
Zac Howland31-Jul-06 10:57 
GeneralRe: Should I learn ATL/COM now? Pin
Kevin McFarlane31-Jul-06 10:52
Kevin McFarlane31-Jul-06 10:52 
GeneralRe: Should I learn ATL/COM now? Pin
Zac Howland31-Jul-06 11:11
Zac Howland31-Jul-06 11:11 
GeneralRe: Should I learn ATL/COM now? Pin
Kevin McFarlane1-Aug-06 0:42
Kevin McFarlane1-Aug-06 0:42 
GeneralTo Zac Pin
CPP_Student31-Jul-06 12:36
CPP_Student31-Jul-06 12:36 
Questionvector -- call methods from inheritance classes [modified] Pin
RealWood30-Jul-06 4:56
RealWood30-Jul-06 4:56 
GeneralRe: vector -- call methods from inheritance classes Pin
Justin Tay30-Jul-06 5:46
Justin Tay30-Jul-06 5:46 
GeneralRe: vector -- call methods from inheritance classes Pin
RealWood30-Jul-06 8:09
RealWood30-Jul-06 8:09 
GeneralRe: vector -- call methods from inheritance classes [modified] Pin
Justin Tay30-Jul-06 10:37
Justin Tay30-Jul-06 10:37 

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.