Click here to Skip to main content
15,896,153 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: Generic terms....!!! plz help Pin
Richard MacCutchan1-Feb-12 3:38
mveRichard MacCutchan1-Feb-12 3:38 
RantRe: Generic terms....!!! plz help Pin
♥…ЯҠ…♥6-Feb-12 17:39
professional♥…ЯҠ…♥6-Feb-12 17:39 
GeneralRe: Generic terms....!!! plz help Pin
Richard MacCutchan6-Feb-12 22:37
mveRichard MacCutchan6-Feb-12 22:37 
QuestionMS C++ gives error for fully-qualified ctor name in initializer list Pin
old_hacker27-Jan-12 11:23
old_hacker27-Jan-12 11:23 
SuggestionRe: MS C++ gives error for fully-qualified ctor name in initializer list Pin
Pablo Aliskevicius28-Jan-12 22:25
Pablo Aliskevicius28-Jan-12 22:25 
AnswerRe: MS C++ gives error for fully-qualified ctor name in initializer list Pin
Richard MacCutchan28-Jan-12 22:37
mveRichard MacCutchan28-Jan-12 22:37 
QuestionCan you help me solve my OTS Elevated COM Object error? Pin
Christine_Irene26-Jan-12 3:08
Christine_Irene26-Jan-12 3:08 
QuestionStore STL iterator in CListBox Pin
LionAM17-Jan-12 0:36
LionAM17-Jan-12 0:36 
Hello,
I'm trying to upgrade a program from Visual C++ 6 to Visual C++ 2008.
However, there have been some changes to the STL library.

I used to store an iterator (which was 4 Bytes in size) inside an MFC CListBox using SetItemData and restored it with GetItemData.

However, the iterators are now 12 Bytes in size. I could in principle store only the NodePtr

C++
listBox.SetItemDataPtr(index, iter._Ptr);

...

iter = list<int>::iterator((list<int>::_Nodeptr)listBox.GetItemDataPtr(index), &stl_list);


The only problem is that the type
C++
list<int>::_Nodeptr
is protected, so I cannot convert it back.

Do you have any idea how to temporarily store the iterator inside the ListBox?

Alex
AnswerRe: Store STL iterator in CListBox Pin
Richard MacCutchan17-Jan-12 0:52
mveRichard MacCutchan17-Jan-12 0:52 
GeneralRe: Store STL iterator in CListBox Pin
LionAM17-Jan-12 1:11
LionAM17-Jan-12 1:11 
GeneralRe: Store STL iterator in CListBox Pin
Richard MacCutchan17-Jan-12 1:31
mveRichard MacCutchan17-Jan-12 1:31 
GeneralRe: Store STL iterator in CListBox Pin
LionAM17-Jan-12 2:02
LionAM17-Jan-12 2:02 
GeneralRe: Store STL iterator in CListBox Pin
Richard MacCutchan17-Jan-12 3:00
mveRichard MacCutchan17-Jan-12 3:00 
GeneralRe: Store STL iterator in CListBox Pin
LionAM17-Jan-12 5:16
LionAM17-Jan-12 5:16 
GeneralRe: Store STL iterator in CListBox Pin
Richard MacCutchan17-Jan-12 5:22
mveRichard MacCutchan17-Jan-12 5:22 
GeneralRe: Store STL iterator in CListBox Pin
LionAM17-Jan-12 9:09
LionAM17-Jan-12 9:09 
GeneralRe: Store STL iterator in CListBox Pin
Richard MacCutchan17-Jan-12 9:31
mveRichard MacCutchan17-Jan-12 9:31 
AnswerRe: Store STL iterator in CListBox Pin
«_Superman_»18-Jan-12 18:23
professional«_Superman_»18-Jan-12 18:23 
GeneralRe: Store STL iterator in CListBox Pin
LionAM19-Jan-12 9:04
LionAM19-Jan-12 9:04 
AnswerRe: Store STL iterator in CListBox Pin
Orjan Westin19-Jan-12 4:24
professionalOrjan Westin19-Jan-12 4:24 
GeneralRe: Store STL iterator in CListBox Pin
LionAM19-Jan-12 8:54
LionAM19-Jan-12 8:54 
GeneralRe: Store STL iterator in CListBox Pin
Orjan Westin19-Jan-12 23:38
professionalOrjan Westin19-Jan-12 23:38 
GeneralRe: Store STL iterator in CListBox Pin
LionAM20-Jan-12 11:04
LionAM20-Jan-12 11:04 
AnswerRe: Store STL iterator in CListBox Pin
Emilio Garavaglia25-Jan-12 21:22
Emilio Garavaglia25-Jan-12 21:22 
AnswerRe: Store STL iterator in CListBox Pin
nv314-Mar-12 13:05
nv314-Mar-12 13:05 

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.