Click here to Skip to main content
16,006,475 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: String vector speed issue Pin
Tim Smith13-Jan-03 6:06
Tim Smith13-Jan-03 6:06 
GeneralRe: String vector speed issue Pin
-Dy13-Jan-03 6:16
-Dy13-Jan-03 6:16 
GeneralRe: String vector speed issue Pin
Tim Smith13-Jan-03 6:43
Tim Smith13-Jan-03 6:43 
GeneralRe: String vector speed issue Pin
gosh14-Feb-03 11:21
gosh14-Feb-03 11:21 
Generalerror MIDL2020 : error generating type library : SaveAllChanges Failed Pin
DeepakSharma12-Jan-03 23:54
DeepakSharma12-Jan-03 23:54 
GeneralRe: error MIDL2020 : error generating type library : SaveAllChanges Failed Pin
AlexO13-Jan-03 2:35
AlexO13-Jan-03 2:35 
GeneralPersist STL vector to Registry Pin
Neville Franks12-Jan-03 14:22
Neville Franks12-Jan-03 14:22 
QuestionHow can I prohibit STL alter its items' addreses Pin
IMiracle12-Jan-03 1:13
IMiracle12-Jan-03 1:13 
I program an app that uses a treeCtrl, and I use the tv_item::lParam save an address of an item in std::list. Code like this:
std::list<MyStruct> items;
....
std::list<MyStruct>::iterator pCur = items.begin();
TVM_INSERTITEM tvi;
tvi.item.mask = TVIF_TEXT | TVIF_PARAM...
tvi.item.lParam = &(*pCur);
....
TreeView_InsertItem(hTree, &tvi);
....

when I retrive an item of the tree and its MyStruct:
MyStruct* pMyStruct;
TV_ITEM item;
item.mask = TVIF_TEXT|TVIF_PARAM...
TreeView_GetItem(hTree, &item);
pMyStruct = (MyStruct*)item.lParam;
Now, the pMyStruct is not equal the &(*pCur) above.
How can I prohibit STL alter its items' addresses?
AnswerRe: How can I prohibit STL alter its items' addreses Pin
Joaquín M López Muñoz12-Jan-03 11:30
Joaquín M López Muñoz12-Jan-03 11:30 
Generaltemplates as paremeters in std::vector<> Pin
Biochemist10-Jan-03 10:54
Biochemist10-Jan-03 10:54 
GeneralRe: templates as paremeters in std::vector<> Pin
Nemanja Trifunovic10-Jan-03 11:43
Nemanja Trifunovic10-Jan-03 11:43 
GeneralRe: templates as paremeters in std::vector<> Pin
Todd Smith10-Jan-03 12:10
Todd Smith10-Jan-03 12:10 
GeneralRe: templates as paremeters in std::vector Pin
Tim Smith10-Jan-03 17:39
Tim Smith10-Jan-03 17:39 
GeneralRe: templates as paremeters in std::vector<> Pin
Biochemist11-Jan-03 3:11
Biochemist11-Jan-03 3:11 
GeneralRe: templates as paremeters in std::vector<> Pin
Michael Dunn11-Jan-03 19:34
sitebuilderMichael Dunn11-Jan-03 19:34 
GeneralRe: templates as paremeters in std::vector<> Pin
Nemanja Trifunovic13-Jan-03 5:44
Nemanja Trifunovic13-Jan-03 5:44 
GeneralRe: templates as paremeters in std::vector<> Pin
Ben Burnett13-Jan-03 17:01
Ben Burnett13-Jan-03 17:01 
GeneralRe: templates as paremeters in std::vector<> Pin
Nemanja Trifunovic13-Jan-03 5:48
Nemanja Trifunovic13-Jan-03 5:48 
Generalbinary_search / lower_bound Pin
User 98858-Jan-03 9:43
User 98858-Jan-03 9:43 
GeneralRe: binary_search / lower_bound Pin
User 98858-Jan-03 11:33
User 98858-Jan-03 11:33 
GeneralRe: binary_search / lower_bound Pin
Tim Smith9-Jan-03 8:07
Tim Smith9-Jan-03 8:07 
GeneralMemory Leak WIth OLE2A and other conversion macros. Pin
Anonymous8-Jan-03 3:05
Anonymous8-Jan-03 3:05 
GeneralRe: Memory Leak WIth OLE2A and other conversion macros. Pin
AlexO8-Jan-03 5:16
AlexO8-Jan-03 5:16 
GeneralRe: Memory Leak WIth OLE2A and other conversion macros. Pin
Tim Smith8-Jan-03 10:12
Tim Smith8-Jan-03 10:12 
GeneralRe: Memory Leak WIth OLE2A and other conversion macros. Pin
AlexO9-Jan-03 3:01
AlexO9-Jan-03 3:01 

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.