Click here to Skip to main content
15,914,014 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to link to dll using function names rather than ordinals Pin
Chesnokov Yuriy25-Aug-09 19:08
professionalChesnokov Yuriy25-Aug-09 19:08 
QuestionOutlook Automation Pin
john563224-Aug-09 20:12
john563224-Aug-09 20:12 
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 
void Create_Batch_to_Send(const CList<CRepositoryData*> & listUserData)


(it is also better to pass the list by reference, so that you don't make a copy of it).

But of course, all your lists should manipulate pointers and not objects. Thus, you will need to create your objects dynamically (using new) and not forget to delete them once you don't need them anymore.

In your function, it really depends what you have to do with the objects but in most of the cases, you probably won't need to cast anything.

Cédric Moonen
Software developer

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

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 
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 

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.