Click here to Skip to main content
15,899,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralExe/Dll Dependancies. Pin
Mike Doner8-Jul-02 9:34
Mike Doner8-Jul-02 9:34 
GeneralRe: Exe/Dll Dependancies. Pin
Oliver Daniel8-Jul-02 10:08
Oliver Daniel8-Jul-02 10:08 
GeneralRe: Exe/Dll Dependancies. Pin
Mike Doner9-Jul-02 9:06
Mike Doner9-Jul-02 9:06 
GeneralRe: Exe/Dll Dependancies. Pin
-Dy10-Jul-02 23:45
-Dy10-Jul-02 23:45 
GeneralRe: Exe/Dll Dependancies. Pin
Mike Doner12-Jul-02 2:59
Mike Doner12-Jul-02 2:59 
GeneralWNetAddConnection2 fails with error code 1312 Pin
alma8-Jul-02 9:24
alma8-Jul-02 9:24 
GeneralRe: WNetAddConnection2 fails with error code 1312 Pin
alma11-Jul-02 1:49
alma11-Jul-02 1:49 
GeneralSTL question - Moving Items around in a list Pin
#realJSOP8-Jul-02 9:13
professional#realJSOP8-Jul-02 9:13 
I have the following:

typedef std::list<CMyObject*> myObjectList

The list is populated and is already in alphabetic order by name.

Each item can be either selected or unselected. I want to bubble the selected items to the top of the list without affecting their relative positions to one another. In other words, I may have the following (Selected items are indicated with the "[]" bracket pair):

A
[B]
C
D
[E]
[F]

I want to end up with this:

[B]
[E]
[F]
A
C
D

What's the best way to do this? Should I just remove each item one at a time (starting at the end of the list) and re-insert it at the top of the list? Is there some exotic list function that I can use?


------- signature starts

"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

Please review the Legal Disclaimer in my bio.

------- signature ends
GeneralRe: STL question - Moving Items around in a list Pin
Chris Losinger8-Jul-02 9:38
professionalChris Losinger8-Jul-02 9:38 
GeneralRe: STL question - Moving Items around in a list Pin
#realJSOP8-Jul-02 9:45
professional#realJSOP8-Jul-02 9:45 
GeneralRe: STL question - Moving Items around in a list Pin
Chris Losinger8-Jul-02 9:53
professionalChris Losinger8-Jul-02 9:53 
GeneralRe: STL question - Moving Items around in a list Pin
Tim Smith8-Jul-02 10:14
Tim Smith8-Jul-02 10:14 
GeneralRe: STL question - Moving Items around in a list Pin
Chris Losinger8-Jul-02 10:16
professionalChris Losinger8-Jul-02 10:16 
GeneralRe: STL question - Moving Items around in a list Pin
#realJSOP9-Jul-02 2:31
professional#realJSOP9-Jul-02 2:31 
GeneralRe: STL question - Moving Items around in a list Pin
jbarton9-Jul-02 5:23
jbarton9-Jul-02 5:23 
GeneralGeting Explorer Drop Target - Help Pin
zarco18-Jul-02 8:43
zarco18-Jul-02 8:43 
GeneralHooking windows Pin
S van Leent8-Jul-02 7:59
S van Leent8-Jul-02 7:59 
GeneralRe: Hooking windows Pin
Oliver Daniel8-Jul-02 10:11
Oliver Daniel8-Jul-02 10:11 
GeneralRe: Hooking windows Pin
S van Leent9-Jul-02 1:43
S van Leent9-Jul-02 1:43 
GeneralWindows XP Socket BUG Pin
8-Jul-02 7:22
suss8-Jul-02 7:22 
GeneralRe: Windows XP Socket BUG Pin
Tim Smith8-Jul-02 10:12
Tim Smith8-Jul-02 10:12 
GeneralScreensaver problem Pin
jancsi8-Jul-02 7:08
jancsi8-Jul-02 7:08 
GeneralRe: Screensaver problem Pin
Gary Kirkham8-Jul-02 7:15
Gary Kirkham8-Jul-02 7:15 
GeneralRe: Screensaver problem Pin
Gary Kirkham8-Jul-02 7:16
Gary Kirkham8-Jul-02 7:16 
Generalunnamed registry keys Pin
Mel Stober8-Jul-02 6:22
Mel Stober8-Jul-02 6:22 

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.