Click here to Skip to main content
15,567,994 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Debug Assertion Failed! Pin
David Crow8-May-09 10:41
David Crow8-May-09 10:41 
QuestionRe: Debug Assertion Failed! Pin
David Crow8-May-09 4:14
David Crow8-May-09 4:14 
AnswerRe: Debug Assertion Failed! Pin
susanne18-May-09 4:47
susanne18-May-09 4:47 
QuestionRe: Debug Assertion Failed! [modified] Pin
David Crow8-May-09 6:25
David Crow8-May-09 6:25 
Questionremove item from STL list<class> problem</class> Pin
raj15767-May-09 22:20
raj15767-May-09 22:20 
AnswerRe: remove item from STL list problem Pin
Roger Stoltz7-May-09 22:47
Roger Stoltz7-May-09 22:47 
GeneralRe: remove item from STL list problem Pin
raj15767-May-09 23:48
raj15767-May-09 23:48 
AnswerRe: remove item from STL list problem Pin
Roger Stoltz8-May-09 0:04
Roger Stoltz8-May-09 0:04 
As Stuart said, std::list::remove is the function you should use as it expects a reference to an instance of the type controlled by the container.
In code it should look something like this:
std::list<ClipEntry*> m_Clips;
....
void ClipPlayer::RemoveClip( ClipEntry* pClip )
{
    m_Clips.remove( pClip );
}

Is your m_Clips really declared as above? I.e., does it store pointers to ClipEntrys?
If it does, you shouldn't need to write a comparison operator for ClipEntry since std::list::remove() would simply compare the pointers in order to find a match. (Referring to you ongoing discussion with Stuart.)


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown


GeneralRe: remove item from STL list problem Pin
raj15768-May-09 0:11
raj15768-May-09 0:11 
AnswerRe: remove item from STL list problem Pin
Stuart Dootson7-May-09 23:16
professionalStuart Dootson7-May-09 23:16 
GeneralRe: remove item from STL list problem Pin
raj15767-May-09 23:44
raj15767-May-09 23:44 
GeneralRe: remove item from STL list problem Pin
Stuart Dootson7-May-09 23:55
professionalStuart Dootson7-May-09 23:55 
GeneralRe: remove item from STL list problem Pin
raj15768-May-09 0:04
raj15768-May-09 0:04 
Questionopc communication [modified] Pin
lucan funani7-May-09 22:16
lucan funani7-May-09 22:16 
QuestionProblem in Image Displaying in a VC++ Application Pin
Shiv Murti Pal7-May-09 22:08
Shiv Murti Pal7-May-09 22:08 
AnswerRe: Problem in Image Displaying in a VC++ Application Pin
Taran97-May-09 23:47
Taran97-May-09 23:47 
AnswerRe: Problem in Image Displaying in a VC++ Application Pin
Hamid_RT8-May-09 0:17
Hamid_RT8-May-09 0:17 
QuestionSetup and deployment project Shortcut creating problem Pin
Ranojay7-May-09 19:53
Ranojay7-May-09 19:53 
AnswerRe: Setup and deployment project Shortcut creating problem Pin
Madhu Nair7-May-09 20:31
Madhu Nair7-May-09 20:31 
GeneralRe: Setup and deployment project Shortcut creating problem Pin
Ranojay7-May-09 22:16
Ranojay7-May-09 22:16 
GeneralRe: Setup and deployment project Shortcut creating problem Pin
Madhu Nair7-May-09 23:54
Madhu Nair7-May-09 23:54 
GeneralRe: Setup and deployment project Shortcut creating problem Pin
Ranojay8-May-09 0:50
Ranojay8-May-09 0:50 
QuestionRe: Setup and deployment project Shortcut creating problem Pin
Madhu Nair8-May-09 1:02
Madhu Nair8-May-09 1:02 
AnswerRe: Setup and deployment project Shortcut creating problem Pin
Ranojay8-May-09 2:06
Ranojay8-May-09 2:06 
QuestionHow to convert JP2 image to Jpg image? Pin
kapardhi7-May-09 19:43
kapardhi7-May-09 19:43 

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.