Click here to Skip to main content
15,882,740 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Debug Assertion Failed! Pin
David Crow8-May-09 5:29
David Crow8-May-09 5:29 
AnswerRe: Debug Assertion Failed! Pin
susanne18-May-09 6:00
susanne18-May-09 6:00 
GeneralRe: Debug Assertion Failed! Pin
David Crow8-May-09 9:41
David Crow8-May-09 9:41 
QuestionRe: Debug Assertion Failed! Pin
David Crow8-May-09 3:14
David Crow8-May-09 3:14 
AnswerRe: Debug Assertion Failed! Pin
susanne18-May-09 3:47
susanne18-May-09 3:47 
QuestionRe: Debug Assertion Failed! [modified] Pin
David Crow8-May-09 5:25
David Crow8-May-09 5:25 
Questionremove item from STL list<class> problem</class> Pin
raj15767-May-09 21:20
raj15767-May-09 21:20 
AnswerRe: remove item from STL list problem Pin
Roger Stoltz7-May-09 21:47
Roger Stoltz7-May-09 21:47 
raj1576 wrote:
list<ClipEntry>::iterator it;
...
void ClipPlayer::RemoveClip(ClipEntry *pClip)
{

m_Clips.erase(&pClip);
i am getting error
Could not find a match for 'list<ClipEntry,allocator<ClipEntry> >::erase(ClipEntry * *)'


It seems like you're mixing up what type you're storing in the list...
You don't include the declaration for the m_Clips member variable.
Does it store ClipEntry or ClipEntry*?

The compiler error a probably caused by the fact that std::list::erase()
expects an iterator as argument and not a pointer to an element in the list.


"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
raj15767-May-09 22:48
raj15767-May-09 22:48 
AnswerRe: remove item from STL list problem Pin
Roger Stoltz7-May-09 23:04
Roger Stoltz7-May-09 23:04 
GeneralRe: remove item from STL list problem Pin
raj15767-May-09 23:11
raj15767-May-09 23:11 
AnswerRe: remove item from STL list problem Pin
Stuart Dootson7-May-09 22:16
professionalStuart Dootson7-May-09 22:16 
GeneralRe: remove item from STL list problem Pin
raj15767-May-09 22:44
raj15767-May-09 22:44 
GeneralRe: remove item from STL list problem Pin
Stuart Dootson7-May-09 22:55
professionalStuart Dootson7-May-09 22:55 
GeneralRe: remove item from STL list problem Pin
raj15767-May-09 23:04
raj15767-May-09 23:04 
Questionopc communication [modified] Pin
lucan funani7-May-09 21:16
lucan funani7-May-09 21:16 
QuestionProblem in Image Displaying in a VC++ Application Pin
Shiv Murti Pal7-May-09 21:08
Shiv Murti Pal7-May-09 21:08 
AnswerRe: Problem in Image Displaying in a VC++ Application Pin
Taran97-May-09 22:47
Taran97-May-09 22:47 
AnswerRe: Problem in Image Displaying in a VC++ Application Pin
Hamid_RT7-May-09 23:17
Hamid_RT7-May-09 23:17 
QuestionSetup and deployment project Shortcut creating problem Pin
Ranojay7-May-09 18:53
Ranojay7-May-09 18:53 
AnswerRe: Setup and deployment project Shortcut creating problem Pin
Madhu Nair7-May-09 19:31
Madhu Nair7-May-09 19:31 
GeneralRe: Setup and deployment project Shortcut creating problem Pin
Ranojay7-May-09 21:16
Ranojay7-May-09 21:16 
GeneralRe: Setup and deployment project Shortcut creating problem Pin
Madhu Nair7-May-09 22:54
Madhu Nair7-May-09 22:54 
GeneralRe: Setup and deployment project Shortcut creating problem Pin
Ranojay7-May-09 23:50
Ranojay7-May-09 23:50 
QuestionRe: Setup and deployment project Shortcut creating problem Pin
Madhu Nair8-May-09 0:02
Madhu Nair8-May-09 0:02 

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.