Click here to Skip to main content
16,007,610 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Vista's Explorer toolbar control Pin
yarp6-Jan-08 19:18
yarp6-Jan-08 19:18 
QuestionProlem with rich edit control. ITextService's TxGetNaturalSize doesnt give me the right value.. [modified] Pin
Arif Siddiquee5-Dec-07 1:25
Arif Siddiquee5-Dec-07 1:25 
QuestionContextMenu HWND in a Shell Extension Dll Pin
Jeffrey Walton30-Nov-07 23:45
Jeffrey Walton30-Nov-07 23:45 
GeneralRe: ContextMenu HWND in a Shell Extension Dll Pin
Michael Dunn6-Jan-08 11:22
sitebuilderMichael Dunn6-Jan-08 11:22 
QuestionC++ String split Pin
Mustafa Ismail Mustafa30-Nov-07 0:22
Mustafa Ismail Mustafa30-Nov-07 0:22 
AnswerRe: C++ String split Pin
Stuart Dootson30-Nov-07 3:36
professionalStuart Dootson30-Nov-07 3:36 
JokeRe: C++ String split Pin
Florin Crişan30-Nov-07 4:00
Florin Crişan30-Nov-07 4:00 
GeneralRe: C++ String split Pin
Mustafa Ismail Mustafa30-Nov-07 7:25
Mustafa Ismail Mustafa30-Nov-07 7:25 
Sorry for the late reply but I had to leave for a bit. Thanks Smile | :) I was contemplating installing boost, but I figured I'd hit the standard STL before I do that. Besides, this is only for my MSc. PoC for my Advanced Algorithms lecture.

As is, many thanks to you and Florin!

However, I'm now facing something new.

This is a partial view of what I have:

        try
{
    //add the empty set phi first
    ListOfSubsets().push_back("{}");

    //create the iterator
    list<char*>::iterator pos;

    //add the set of elements singly
    for(pos = ListOfElements().begin(); pos != ListOfElements().end(); ++pos)
    {
        cout << *pos << endl;
    }
}
catch(exception ex)
{
    cout << "an error has occurred: " << endl;
    cout << ex.what() << endl;

    return;
}


with these defined in the header:

private:
	list<char*> _ListOfElements;
	list<char*> _ListOfSubsets;
	
protected:
	//getter & setter function

	//ListOfElements
	list<char*> ListOfElements(void) const	//constant function [Read only]
	{
		return _ListOfElements;
	}
	void set_ListOfElements(list<char*> listOfElements)
	{
		_ListOfElements = listOfElements;
	}


	//ListOfSubsets
	list<char*> ListOfSubsets(void) const
	{
		return _ListOfSubsets;
	}
	void set_ListOfSubsets(list<char*> listOfSubsets)
	{
		_ListOfSubsets = listOfSubsets;
	}


It builds no problem, but when it runs, at the start of iterating through the list ListOfElements, it throws the following error:

Debug Assertion failed! Expression: list iterators incompatible.

no exception is thrown, no errors during building and the iterators are of the same type.

Any clues?

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

"There is no wealth like knowledge, no poverty like ignorance." Ali ibn Abi Talib

"Animadvertistine, ubicumque stes, fumum recta in faciem ferri?"

AnswerRe: C++ String split Pin
Florin Crişan5-Dec-07 5:59
Florin Crişan5-Dec-07 5:59 
GeneralRe: C++ String split Pin
Mustafa Ismail Mustafa5-Dec-07 9:38
Mustafa Ismail Mustafa5-Dec-07 9:38 
GeneralRe: C++ String split Pin
Stuart Dootson5-Dec-07 20:19
professionalStuart Dootson5-Dec-07 20:19 
GeneralRe: C++ String split Pin
Mustafa Ismail Mustafa5-Dec-07 23:49
Mustafa Ismail Mustafa5-Dec-07 23:49 
AnswerRe: C++ String split Pin
Florin Crişan6-Dec-07 3:11
Florin Crişan6-Dec-07 3:11 
AnswerRe: C++ String split Pin
Florin Crişan30-Nov-07 3:46
Florin Crişan30-Nov-07 3:46 
QuestionWTL Web Scrapper Pin
Kuryn27-Nov-07 9:50
Kuryn27-Nov-07 9:50 
AnswerRe: WTL Web Scrapper Pin
Michael Dunn27-Nov-07 16:39
sitebuilderMichael Dunn27-Nov-07 16:39 
QuestionInclude ActiveX in a ATL service using .Net Pin
Alpa Agarwal26-Nov-07 2:53
Alpa Agarwal26-Nov-07 2:53 
Questionhow to get class name from an object of CSnapInItem Object Pin
alien888825-Nov-07 18:26
alien888825-Nov-07 18:26 
AnswerRe: how to get class name from an object of CSnapInItem Object Pin
Florin Crişan26-Nov-07 5:34
Florin Crişan26-Nov-07 5:34 
AnswerRe: how to get class name from an object of CSnapInItem Object Pin
Florin Crişan26-Nov-07 5:43
Florin Crişan26-Nov-07 5:43 
GeneralRe: how to get class name from an object of CSnapInItem Object Pin
alien888826-Nov-07 18:59
alien888826-Nov-07 18:59 
QuestionIncluding is an error? [modified] Pin
Mustafa Ismail Mustafa23-Nov-07 1:04
Mustafa Ismail Mustafa23-Nov-07 1:04 
AnswerNever happened Pin
CPallini23-Nov-07 3:00
mveCPallini23-Nov-07 3:00 
AnswerRe: Including is an error? Pin
Florin Crişan23-Nov-07 4:47
Florin Crişan23-Nov-07 4:47 
GeneralRe: Including is an error? Pin
CPallini27-Nov-07 21:43
mveCPallini27-Nov-07 21: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.