Click here to Skip to main content
15,878,708 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Debug Assertion Failed! Pin
Hamid_RT8-May-09 0:51
Hamid_RT8-May-09 0:51 
AnswerRe: Debug Assertion Failed! Pin
Hamid_RT7-May-09 23:20
Hamid_RT7-May-09 23:20 
GeneralRe: Debug Assertion Failed! Pin
susanne18-May-09 0:41
susanne18-May-09 0:41 
GeneralRe: Debug Assertion Failed! Pin
Hamid_RT8-May-09 0:43
Hamid_RT8-May-09 0:43 
GeneralRe: Debug Assertion Failed! Pin
susanne18-May-09 0:48
susanne18-May-09 0:48 
GeneralRe: Debug Assertion Failed! Pin
Hamid_RT8-May-09 0:52
Hamid_RT8-May-09 0:52 
GeneralRe: Debug Assertion Failed! Pin
susanne18-May-09 1:00
susanne18-May-09 1:00 
GeneralRe: Debug Assertion Failed! Pin
Hamid_RT8-May-09 1:15
Hamid_RT8-May-09 1:15 
GeneralRe: Debug Assertion Failed! Pin
susanne18-May-09 1:35
susanne18-May-09 1:35 
GeneralRe: Debug Assertion Failed! Pin
Hamid_RT8-May-09 2:08
Hamid_RT8-May-09 2:08 
GeneralRe: Debug Assertion Failed! Pin
susanne18-May-09 2:26
susanne18-May-09 2:26 
GeneralRe: Debug Assertion Failed! Pin
Hamid_RT8-May-09 3:43
Hamid_RT8-May-09 3:43 
QuestionRe: Debug Assertion Failed! Pin
David Crow8-May-09 3:18
David Crow8-May-09 3:18 
AnswerRe: Debug Assertion Failed! Pin
susanne18-May-09 3:39
susanne18-May-09 3:39 
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 
hi all

I am writing a application in which i use the stl list. through this list i m able to inserting the items but not able to remove the item from specific position. this is my class
class ClipEntry
{
public:
//CoInitialize(NULL);
ClipEntry();
ClipEntry(const ClipEntry& r);
~ClipEntry();
const ClipEntry& operator=(const ClipEntry& r);
bool operator == (const ClipEntry& r);

private:

IGraphBuilder *m_pGraph;
IUnknown *m_pSinkFilter;
string m_strName;
REFERENCE_TIME m_tOffset;
REFERENCE_TIME m_tStart;
REFERENCE_TIME m_tStop;

// rewound ready to re-use
bool m_bPrimed;
};

I am inserting the items like this
HRESULT ClipPlayer::AddClip(char* path, ClipEntry** ppClip)
{
list<ClipEntry>::iterator it;
it = m_Clips.insert(m_Clips.end(), ClipEntry());
ClipEntry *pClip = &(*it);
*ppClip = pClip;
.........
}

but when i write the remove function like this

void ClipPlayer::RemoveClip(ClipEntry *pClip)
{

m_Clips.erase(&pClip);
// find(m_Clips.begin(),m_Clips.end(),pClip);

}

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

how i solve this problem Confused | :confused:
AnswerRe: remove item from STL list problem Pin
Roger Stoltz7-May-09 21:47
Roger Stoltz7-May-09 21:47 
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 

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.