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

C / C++ / MFC

 
GeneralRe: how to right vector of pointers to binary file ? Pin
Asaf Shay3-Jun-12 6:39
Asaf Shay3-Jun-12 6:39 
GeneralRe: how to right vector of pointers to binary file ? Pin
«_Superman_»3-Jun-12 15:19
professional«_Superman_»3-Jun-12 15:19 
QuestionHow to get static splitter right pane dimensions - size? Pin
Vaclav_1-Jun-12 9:56
Vaclav_1-Jun-12 9:56 
AnswerRe: How to get static splitter right pane dimensions - size? Pin
«_Superman_»1-Jun-12 17:59
professional«_Superman_»1-Jun-12 17:59 
QuestionCopying vector of pointers to another vector Pin
a1_shay1-Jun-12 6:58
a1_shay1-Jun-12 6:58 
QuestionRe: Copying vector of pointers to another vector Pin
Code-o-mat1-Jun-12 10:58
Code-o-mat1-Jun-12 10:58 
AnswerRe: Copying vector of pointers to another vector Pin
a1_shay1-Jun-12 11:29
a1_shay1-Jun-12 11:29 
GeneralRe: Copying vector of pointers to another vector Pin
lewax001-Jun-12 11:56
lewax001-Jun-12 11:56 
Well that will be difficult, considering you deleted the object you're pointing to.

C++
delete arr[choose];

Doesn't remove the pointer from the array, it deletes the object pointed to by that pointer, and since you added the pointer to that object to the other vector, the pointer in the other vector now points to junk data.

Think of a pointer like an address, you gave your second vector an address to a house, then demolished the house. If it tries to go there, it won't find the house it expects to find.
GeneralRe: Copying vector of pointers to another vector Pin
a1_shay1-Jun-12 12:06
a1_shay1-Jun-12 12:06 
GeneralRe: Copying vector of pointers to another vector Pin
lewax001-Jun-12 12:14
lewax001-Jun-12 12:14 
GeneralRe: Copying vector of pointers to another vector Pin
a1_shay1-Jun-12 12:30
a1_shay1-Jun-12 12:30 
QuestionUse OLE Pin
MKC0021-Jun-12 5:42
MKC0021-Jun-12 5:42 
SuggestionRe: Use OLE Pin
David Crow1-Jun-12 6:49
David Crow1-Jun-12 6:49 
GeneralRe: Use OLE Pin
MKC0021-Jun-12 23:15
MKC0021-Jun-12 23:15 
QuestionRe: Use OLE Pin
David Crow4-Jun-12 2:40
David Crow4-Jun-12 2:40 
AnswerRe: Use OLE Pin
MKC0024-Jun-12 4:33
MKC0024-Jun-12 4:33 
AnswerRe: Use OLE Pin
David Crow4-Jun-12 5:07
David Crow4-Jun-12 5:07 
GeneralRe: Use OLE Pin
MKC0024-Jun-12 18:55
MKC0024-Jun-12 18:55 
AnswerRe: Use OLE Pin
David Crow5-Jun-12 2:25
David Crow5-Jun-12 2:25 
GeneralRe: Use OLE Pin
MKC0026-Jun-12 1:22
MKC0026-Jun-12 1:22 
AnswerRe: Use OLE Pin
David Crow6-Jun-12 2:18
David Crow6-Jun-12 2:18 
QuestionFastest data structure Pin
_Flaviu31-May-12 22:59
_Flaviu31-May-12 22:59 
AnswerRe: Fastest data structure Pin
Erudite_Eric1-Jun-12 0:19
Erudite_Eric1-Jun-12 0:19 
AnswerRe: Fastest data structure Pin
Aescleal1-Jun-12 1:04
Aescleal1-Jun-12 1:04 
GeneralRe: Fastest data structure Pin
_Flaviu1-Jun-12 1:48
_Flaviu1-Jun-12 1:48 

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.