Click here to Skip to main content
15,883,063 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Outlook Automation Pin
_AnsHUMAN_ 24-Aug-09 22:08
_AnsHUMAN_ 24-Aug-09 22:08 
QuestionRe: Outlook Automation Pin
David Crow25-Aug-09 3:27
David Crow25-Aug-09 3:27 
QuestionUsing dynamic_cast for Clist Pin
blontek24-Aug-09 20:08
blontek24-Aug-09 20:08 
AnswerRe: Using dynamic_cast for Clist Pin
Cedric Moonen24-Aug-09 20:50
Cedric Moonen24-Aug-09 20:50 
GeneralRe: Using dynamic_cast for Clist Pin
blontek24-Aug-09 21:33
blontek24-Aug-09 21:33 
GeneralRe: Using dynamic_cast for Clist Pin
Cedric Moonen24-Aug-09 21:41
Cedric Moonen24-Aug-09 21:41 
GeneralRe: Using dynamic_cast for Clist Pin
Stuart Dootson24-Aug-09 23:54
professionalStuart Dootson24-Aug-09 23:54 
GeneralRe: Using dynamic_cast for Clist Pin
blontek25-Aug-09 0:42
blontek25-Aug-09 0:42 
Our coding rules does not allow me to make the function a template but thanks anyway.
I cant seem to make it work on making my list and passing it to the batch function.
I call void Create_Batch_To_Send(const CList<CRepositoryData*> &listRepData)) considering the earlier reply.

myfunc()
{
  CList<CUser_data, CUser_data&>* UserParentlist;

  UserParentlist = new CList<CUser_data, CUser_data&>;

  Create_Batch_To_Send(UserParentlist);
}

It does not work. Can you provide me with the exact syntax. Many thanks to all.

I think passing a CList derived class to a function that has an argument of the CList base class
is not possible. since inside my create_batch_to_send() I must be able to differentiate those 3 derived class. The first thing I did was like

create_batch_to_send(IN DATALIST dataType_P,IN POSITION &startPosition, 
                     IN int number_of_Record_To_Copy,
                     OUT CList <CUser_data,CUser_data&> *plistUserdata_P,
                     OUT CList <CLock_data,CLock_data&> *plistLockData_P,
                     OUT CList <CReferences_data,CReferences_data&> *plistLocationData_P)


The enhancement that i want to make was to use the base class of these 3 classes as one argument only.
GeneralRe: Using dynamic_cast for Clist Pin
Stuart Dootson25-Aug-09 2:46
professionalStuart Dootson25-Aug-09 2:46 
QuestionCWebBrowser Control - Proxy setting Pin
Member 383463024-Aug-09 19:56
Member 383463024-Aug-09 19:56 
AnswerRe: CWebBrowser Control - Proxy setting Pin
autodebug24-Aug-09 20:26
autodebug24-Aug-09 20:26 
GeneralRe: CWebBrowser Control - Proxy setting Pin
Member 383463024-Aug-09 20:53
Member 383463024-Aug-09 20:53 
GeneralRe: CWebBrowser Control - Proxy setting Pin
autodebug24-Aug-09 21:31
autodebug24-Aug-09 21:31 
GeneralRe: CWebBrowser Control - Proxy setting Pin
Member 383463024-Aug-09 22:55
Member 383463024-Aug-09 22:55 
GeneralRe: CWebBrowser Control - Proxy setting Pin
Stuart Dootson25-Aug-09 2:49
professionalStuart Dootson25-Aug-09 2:49 
GeneralRe: CWebBrowser Control - Proxy setting Pin
Member 383463025-Aug-09 19:42
Member 383463025-Aug-09 19:42 
GeneralRe: CWebBrowser Control - Proxy setting Pin
Stuart Dootson25-Aug-09 20:58
professionalStuart Dootson25-Aug-09 20:58 
GeneralRe: CWebBrowser Control - Proxy setting Pin
msrikant2-Sep-09 11:36
msrikant2-Sep-09 11:36 
QuestionCDatabase Create Table Pin
rdop24-Aug-09 19:46
rdop24-Aug-09 19:46 
AnswerRe: CDatabase Create Table Pin
rdop24-Aug-09 20:38
rdop24-Aug-09 20:38 
QuestionResource leak Pin
kumar sanghvi24-Aug-09 19:43
kumar sanghvi24-Aug-09 19:43 
AnswerRe: Resource leak Pin
autodebug24-Aug-09 20:18
autodebug24-Aug-09 20:18 
GeneralRe: Resource leak Pin
Shalyapin8-Feb-10 4:11
Shalyapin8-Feb-10 4:11 
AnswerRe: Resource leak Pin
Naveen24-Aug-09 20:19
Naveen24-Aug-09 20:19 
QuestionDisplaying WMF File in GDI+ Pin
VCsamir24-Aug-09 19:40
VCsamir24-Aug-09 19:40 

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.