Click here to Skip to main content
15,902,492 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: auto_ptr array Pin
George_George1-Apr-08 23:02
George_George1-Apr-08 23:02 
GeneralRe: auto_ptr array Pin
CPallini1-Apr-08 23:07
mveCPallini1-Apr-08 23:07 
GeneralRe: auto_ptr array Pin
George_George1-Apr-08 23:14
George_George1-Apr-08 23:14 
GeneralRe: auto_ptr array Pin
CPallini1-Apr-08 23:49
mveCPallini1-Apr-08 23:49 
GeneralRe: auto_ptr array Pin
George_George2-Apr-08 1:14
George_George2-Apr-08 1:14 
GeneralRe: auto_ptr array Pin
Stephen Hewitt2-Apr-08 16:33
Stephen Hewitt2-Apr-08 16:33 
GeneralRe: auto_ptr array Pin
George_George3-Apr-08 0:01
George_George3-Apr-08 0:01 
GeneralRe: auto_ptr array Pin
ankita patel1-Apr-08 11:33
ankita patel1-Apr-08 11:33 
As you have already discovered auto_ptr is not designed to work as an array of pointers. There are multiple solutions to your problem and they are described in the below links.

http://www.codeproject.com/KB/cpp/COAP.aspx[^]

http://www.gotw.ca/gotw/042.htm[^]

If you are just interested finding out how auto_ptr can be used with an array then above links are suffice.
but in real use, you might want to take a look at the boost smart pointer library. you can also use the shared_ptr as it is designed to work with STL containers.

Ankita
GeneralRe: auto_ptr array Pin
George_George1-Apr-08 19:42
George_George1-Apr-08 19:42 
GeneralInternationalization - Pin
kutti1-Apr-08 0:31
kutti1-Apr-08 0:31 
GeneralRe: Internationalization - Pin
_AnsHUMAN_ 1-Apr-08 0:53
_AnsHUMAN_ 1-Apr-08 0:53 
GeneralRe: Internationalization - Pin
kutti1-Apr-08 1:07
kutti1-Apr-08 1:07 
GeneralA Question about FindWindowEx Pin
Mushtaque Nizamani1-Apr-08 0:17
Mushtaque Nizamani1-Apr-08 0:17 
GeneralRe: A Question about FindWindowEx Pin
Iain Clarke, Warrior Programmer1-Apr-08 0:33
Iain Clarke, Warrior Programmer1-Apr-08 0:33 
GeneralRe: A Question about FindWindowEx Pin
Mushtaque Nizamani1-Apr-08 0:46
Mushtaque Nizamani1-Apr-08 0:46 
GeneralRe: A Question about FindWindowEx Pin
Iain Clarke, Warrior Programmer1-Apr-08 1:23
Iain Clarke, Warrior Programmer1-Apr-08 1:23 
GeneralRe: A Question about FindWindowEx Pin
CPallini1-Apr-08 1:39
mveCPallini1-Apr-08 1:39 
GeneralRe: A Question about FindWindowEx Pin
Mushtaque Nizamani1-Apr-08 1:47
Mushtaque Nizamani1-Apr-08 1:47 
GeneralOT: Iain cautious approach... Pin
CPallini1-Apr-08 2:06
mveCPallini1-Apr-08 2:06 
GeneralRe: OT: Iain cautious approach... Pin
Iain Clarke, Warrior Programmer1-Apr-08 3:10
Iain Clarke, Warrior Programmer1-Apr-08 3:10 
QuestionHow can I change the config of Windows services with a MFC program?? Pin
oceandeeplawrence1-Apr-08 0:10
oceandeeplawrence1-Apr-08 0:10 
GeneralRe: How can I change the config of Windows services with a MFC program?? Pin
Iain Clarke, Warrior Programmer1-Apr-08 0:20
Iain Clarke, Warrior Programmer1-Apr-08 0:20 
Questionlinked list in SDK Pin
trioum1-Apr-08 0:02
trioum1-Apr-08 0:02 
GeneralRe: linked list in SDK Pin
Iain Clarke, Warrior Programmer1-Apr-08 0:36
Iain Clarke, Warrior Programmer1-Apr-08 0:36 
GeneralRe: linked list in SDK Pin
CPallini1-Apr-08 0:50
mveCPallini1-Apr-08 0:50 

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.