Click here to Skip to main content
15,891,513 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
Questionhelp in coding for database Pin
With_problem24-Oct-06 17:45
With_problem24-Oct-06 17:45 
AnswerRe: help in coding for database Pin
led mike25-Oct-06 12:30
led mike25-Oct-06 12:30 
QuestionConversion to and from TCHAR* Pin
rana7423-Oct-06 20:19
rana7423-Oct-06 20:19 
AnswerRe: Conversion to and from TCHAR* Pin
Michael Dunn23-Oct-06 20:53
sitebuilderMichael Dunn23-Oct-06 20:53 
AnswerRe: Conversion to and from TCHAR* Pin
lafleon17-Nov-06 13:35
lafleon17-Nov-06 13:35 
QuestionCan I derive from an ATL ActiveX control? Pin
markjmalin23-Oct-06 6:44
markjmalin23-Oct-06 6:44 
AnswerRe: Can I derive from an ATL ActiveX control? Pin
led mike25-Oct-06 13:24
led mike25-Oct-06 13:24 
GeneralRe: Can I derive from an ATL ActiveX control? Pin
markjmalin26-Oct-06 3:15
markjmalin26-Oct-06 3:15 
The idea was to have a container window class of some sort which would contain any number of ActiveX controls. These would be diverse (buttons, grids, graphs, etc.). I figured a vector could contain maybe pointers to these, but in my non-COM object oriented brain I'm thinking they all need to derive from some common class, then. Each one would handle it's own drawing and functionality.

Our current design uses a template struct, "ViewHost", which contains a CAxWindow and a CComPtr member. This struct wraps the creation of the ActiveX controls. Our current design hard-codes different container window types to contain specific ActiveX controls. I'm working on redisigning it and want to be able to take any container window and put whatever controls I want in it. My thought was a vector of our "ViewHosts" in each container, but since ViewHost is a template (and since it contains CComPtr which is a template), the compiler needs to know at compile time what class each one is. So that kills my idea of a vector of ViewHost structures containing any kind of ActiveX control.

Anyhow, that's why I thought "if I can derive these controls from some common base class I can have a vector of them"

Any thoughts? Are you sure I'm only "off center"? Wink | ;)
Mark.

Mark Malin
Software Developer
GE Healthcare

GeneralRe: Can I derive from an ATL ActiveX control? Pin
led mike26-Oct-06 4:50
led mike26-Oct-06 4:50 
GeneralRe: Can I derive from an ATL ActiveX control? Pin
markjmalin26-Oct-06 4:54
markjmalin26-Oct-06 4:54 
GeneralRe: Can I derive from an ATL ActiveX control? Pin
led mike26-Oct-06 5:31
led mike26-Oct-06 5:31 
GeneralRe: Can I derive from an ATL ActiveX control? Pin
markjmalin26-Oct-06 5:53
markjmalin26-Oct-06 5:53 
GeneralRe: Can I derive from an ATL ActiveX control? Pin
led mike26-Oct-06 6:06
led mike26-Oct-06 6:06 
GeneralRe: Can I derive from an ATL ActiveX control? Pin
markjmalin26-Oct-06 6:24
markjmalin26-Oct-06 6:24 
QuestionOLE DB app crashes when using non-Access data source Pin
User 1278218-Oct-06 16:45
User 1278218-Oct-06 16:45 
AnswerRe: OLE DB app crashes when using non-Access data source Pin
Jörgen Sigvardsson19-Oct-06 9:51
Jörgen Sigvardsson19-Oct-06 9:51 
GeneralRe: OLE DB app crashes when using non-Access data source Pin
User 1278219-Oct-06 17:53
User 1278219-Oct-06 17:53 
QuestionAtl New Object Pin
With_problem17-Oct-06 16:35
With_problem17-Oct-06 16:35 
QuestionRe: Atl New Object Pin
prasad_som17-Oct-06 19:59
prasad_som17-Oct-06 19:59 
QuestionDCOM in WinXP or samething esle is better [modified] Pin
Greg_moon16-Oct-06 0:12
Greg_moon16-Oct-06 0:12 
Questionwhy triats declaration cannot work? Pin
Yaki_1515-Oct-06 21:21
Yaki_1515-Oct-06 21:21 
GeneralRe: why triats declaration cannot work? Pin
prasad_som17-Oct-06 18:50
prasad_som17-Oct-06 18:50 
AnswerRe: why triats declaration cannot work? Pin
Lim Bio Liong18-Oct-06 3:48
Lim Bio Liong18-Oct-06 3:48 
GeneralRe: why triats declaration cannot work? Pin
Yaki_1518-Oct-06 15:00
Yaki_1518-Oct-06 15:00 
GeneralRe: why triats declaration cannot work? Pin
Lim Bio Liong18-Oct-06 16:04
Lim Bio Liong18-Oct-06 16:04 

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.