Click here to Skip to main content
15,844,011 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to link to dll using function names rather than ordinals Pin
Chesnokov Yuriy24-Aug-09 22:02
professionalChesnokov Yuriy24-Aug-09 22:02 
AnswerRe: How to link to dll using function names rather than ordinals Pin
Rick York25-Aug-09 7:12
mveRick York25-Aug-09 7:12 
AnswerRe: How to link to dll using function names rather than ordinals Pin
Chesnokov Yuriy25-Aug-09 20:08
professionalChesnokov Yuriy25-Aug-09 20:08 
QuestionOutlook Automation Pin
john563224-Aug-09 21:12
john563224-Aug-09 21:12 
AnswerRe: Outlook Automation Pin
_AnsHUMAN_ 24-Aug-09 23:08
_AnsHUMAN_ 24-Aug-09 23:08 
QuestionRe: Outlook Automation Pin
David Crow25-Aug-09 4:27
David Crow25-Aug-09 4:27 
QuestionUsing dynamic_cast for Clist Pin
blontek24-Aug-09 21:08
blontek24-Aug-09 21:08 
AnswerRe: Using dynamic_cast for Clist Pin
Cedric Moonen24-Aug-09 21:50
Cedric Moonen24-Aug-09 21:50 
I am not sure I understood your question but what you are trying to do is not really correct. You can't cast to CList<CLock_data,CLock_data&>* from a CList <CRepositoryData,CRepositoryData&> *. These are two different types (even if the class used for template arguments are parent/child).

A better approache would be to use polymorphism: instead of manipulating a list of CRepositoryData objects, simply manipulate a list of pointers to CRepositoryData objects. This way, the pointer can point to a CRepositoryData object or to a child object.
This has also another advantage: all the lists can be manipulated the same way (and you could maybe even reduce them to one single list).

Cédric Moonen
Software developer

Charting control [v2.0]
OpenGL game tutorial in C++

GeneralRe: Using dynamic_cast for Clist Pin
blontek24-Aug-09 22:33
blontek24-Aug-09 22:33 
GeneralRe: Using dynamic_cast for Clist Pin
Cedric Moonen24-Aug-09 22:41
Cedric Moonen24-Aug-09 22:41 
GeneralRe: Using dynamic_cast for Clist Pin
Stuart Dootson25-Aug-09 0:54
professionalStuart Dootson25-Aug-09 0:54 
GeneralRe: Using dynamic_cast for Clist Pin
blontek25-Aug-09 1:42
blontek25-Aug-09 1:42 
GeneralRe: Using dynamic_cast for Clist Pin
Stuart Dootson25-Aug-09 3:46
professionalStuart Dootson25-Aug-09 3:46 
QuestionCWebBrowser Control - Proxy setting Pin
Member 383463024-Aug-09 20:56
Member 383463024-Aug-09 20:56 
AnswerRe: CWebBrowser Control - Proxy setting Pin
autodebug24-Aug-09 21:26
autodebug24-Aug-09 21:26 
GeneralRe: CWebBrowser Control - Proxy setting Pin
Member 383463024-Aug-09 21:53
Member 383463024-Aug-09 21:53 
GeneralRe: CWebBrowser Control - Proxy setting Pin
autodebug24-Aug-09 22:31
autodebug24-Aug-09 22:31 
GeneralRe: CWebBrowser Control - Proxy setting Pin
Member 383463024-Aug-09 23:55
Member 383463024-Aug-09 23:55 
GeneralRe: CWebBrowser Control - Proxy setting Pin
Stuart Dootson25-Aug-09 3:49
professionalStuart Dootson25-Aug-09 3:49 
GeneralRe: CWebBrowser Control - Proxy setting Pin
Member 383463025-Aug-09 20:42
Member 383463025-Aug-09 20:42 
GeneralRe: CWebBrowser Control - Proxy setting Pin
Stuart Dootson25-Aug-09 21:58
professionalStuart Dootson25-Aug-09 21:58 
GeneralRe: CWebBrowser Control - Proxy setting Pin
msrikant2-Sep-09 12:36
msrikant2-Sep-09 12:36 
QuestionCDatabase Create Table Pin
rdop24-Aug-09 20:46
rdop24-Aug-09 20:46 
AnswerRe: CDatabase Create Table Pin
rdop24-Aug-09 21:38
rdop24-Aug-09 21:38 
QuestionResource leak Pin
kumar sanghvi24-Aug-09 20:43
kumar sanghvi24-Aug-09 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.