Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Directive Pin
toxcct20-Jun-07 1:32
toxcct20-Jun-07 1:32 
GeneralRe: Directive Pin
Cedric Moonen20-Jun-07 1:39
Cedric Moonen20-Jun-07 1:39 
GeneralRe: Directive Pin
tom groezer20-Jun-07 1:43
tom groezer20-Jun-07 1:43 
GeneralRe: Directive Pin
toxcct20-Jun-07 1:51
toxcct20-Jun-07 1:51 
QuestionRetriving Device information attached with system Pin
Karismatic20-Jun-07 0:38
Karismatic20-Jun-07 0:38 
QuestionRe: Retriving Device information attached with system Pin
David Crow20-Jun-07 2:35
David Crow20-Jun-07 2:35 
QuestionRe: Retriving Device information attached with system Pin
Hamid_RT20-Jun-07 9:13
Hamid_RT20-Jun-07 9:13 
QuestionProblem removing object from list Pin
Kevin Brydon20-Jun-07 0:28
Kevin Brydon20-Jun-07 0:28 
Hi,

I am having trouble removing an object from a std::list.

I have got a Line object and a list structure in the form
std::list<line> lines;

and am trying to remove a particular Line object from the list by

Line * selectedLine;
// code to determine what line is selected
lines.remove(*selectedLine);

I get the error

c:\program files\microsoft visual studio 8\vc\include\list(908) : error C2678: binary '==' : no operator found which takes a left-hand operand of type 'Line' (or there is no acceptable conversion)
c:\program files\microsoft platform sdk for windows server 2003 r2\include\guiddef.h(192): could be 'int operator ==(const GUID &,const GUID &)' [found using argument-dependent lookup]
while trying to match the argument list '(Line, const Line)'
c:\program files\microsoft visual studio 8\vc\include\list(898) : while compiling class template member function 'void std::list<_Ty>::remove(const _Ty &)'
with
[
_Ty=Line
]
c:\documents and settings\kevin\my documents\visual studio 2005\projects\sdl_001\sdl_001\main.h(391) : see reference to class template instantiation 'std::list<_Ty>' being compiled
with
[
_Ty=Line
]

I have tried searching google but all I can find is examples of how to remove integers and strings from lists

Any help would be appreciated

Kevin
AnswerRe: Problem removing object from list Pin
Cedric Moonen20-Jun-07 0:49
Cedric Moonen20-Jun-07 0:49 
GeneralRe: Problem removing object from list Pin
Kevin Brydon20-Jun-07 1:20
Kevin Brydon20-Jun-07 1:20 
Questioncyclic reduction on c Pin
ovoundaga19-Jun-07 23:32
ovoundaga19-Jun-07 23:32 
Questioncyclic reduction on c Pin
ovoundaga19-Jun-07 23:28
ovoundaga19-Jun-07 23:28 
AnswerRe: cyclic reduction on c Pin
toxcct20-Jun-07 1:35
toxcct20-Jun-07 1:35 
QuestionHow to download the file using HTTP while the file is being uploaded using FTP? Pin
Jyo200719-Jun-07 21:28
Jyo200719-Jun-07 21:28 
AnswerRe: How to download the file using HTTP while the file is being uploaded using FTP? Pin
Iain Clarke, Warrior Programmer19-Jun-07 23:46
Iain Clarke, Warrior Programmer19-Jun-07 23:46 
GeneralRe: How to download the file using HTTP while the file is being uploaded using FTP? Pin
Jyo200720-Jun-07 0:53
Jyo200720-Jun-07 0:53 
QuestionRe: How to download the file using HTTP while the file is being uploaded using FTP? Pin
David Crow20-Jun-07 2:39
David Crow20-Jun-07 2:39 
AnswerRe: How to download the file using HTTP while the file is being uploaded using FTP? Pin
programmer8120-Jun-07 3:10
programmer8120-Jun-07 3:10 
GeneralRe: How to download the file using HTTP while the file is being uploaded using FTP? Pin
David Crow20-Jun-07 4:51
David Crow20-Jun-07 4:51 
AnswerRe: How to download the file using HTTP while the file is being uploaded using FTP? Pin
Hamid_RT20-Jun-07 9:10
Hamid_RT20-Jun-07 9:10 
QuestionProblem in opening the windows registery Pin
Neeraj Sinha19-Jun-07 21:24
Neeraj Sinha19-Jun-07 21:24 
AnswerRe: Problem in opening the windows registery Pin
Cedric Moonen19-Jun-07 21:34
Cedric Moonen19-Jun-07 21:34 
GeneralRe: Problem in opening the windows registery Pin
Neeraj Sinha19-Jun-07 21:48
Neeraj Sinha19-Jun-07 21:48 
AnswerRe: Problem in opening the windows registery Pin
Jonathan [Darka]19-Jun-07 21:41
professionalJonathan [Darka]19-Jun-07 21:41 
AnswerRe: Problem in opening the windows registery Pin
Jhony george19-Jun-07 21:47
Jhony george19-Jun-07 21:47 

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.