Click here to Skip to main content
15,893,161 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
General(?) about fine() from stl Pin
Snyp13-Dec-03 16:18
Snyp13-Dec-03 16:18 
GeneralRe: (?) about fine() from stl Pin
JWood13-Dec-03 17:04
JWood13-Dec-03 17:04 
GeneralRe: (?) about fine() from stl Pin
Bo Hunter13-Dec-03 18:54
Bo Hunter13-Dec-03 18:54 
GeneralRe: (?) about fine() from stl Pin
Snyp14-Dec-03 3:52
Snyp14-Dec-03 3:52 
GeneralRe: (?) about fine() from stl Pin
Snyp14-Dec-03 3:49
Snyp14-Dec-03 3:49 
GeneralRe: (?) about fine() from stl Pin
Mike Dimmick14-Dec-03 3:48
Mike Dimmick14-Dec-03 3:48 
GeneralRe: (?) about fine() from stl Pin
Snyp14-Dec-03 3:49
Snyp14-Dec-03 3:49 
GeneralRe: (?) about fine() from stl Pin
Mike Dimmick14-Dec-03 5:04
Mike Dimmick14-Dec-03 5:04 
So, it compiles OK, but you're getting unexpected behaviour?

If you're using C-style strings, i.e. vec is a vector<char*>, you've probably hit the usual problem of shallow rather than deep comparison: find is comparing the pointers, rather than the strings pointed to. You could use find_if with a custom predicate (probably one that calls strcmp), but it's probably preferable to use a vector<string> instead.
GeneralArchive problem Pin
Atlence13-Dec-03 14:16
Atlence13-Dec-03 14:16 
GeneralRe: Archive problem Pin
JWood13-Dec-03 15:11
JWood13-Dec-03 15:11 
Questioncan any one tell me a way, how to send message from server to selected connected client. Pin
v_srinu_26_f13-Dec-03 13:11
v_srinu_26_f13-Dec-03 13:11 
GeneralRegistry Question OutLook Pin
BaldwinMartin13-Dec-03 11:32
BaldwinMartin13-Dec-03 11:32 
GeneralRe: Registry Question OutLook Pin
David Crow15-Dec-03 7:15
David Crow15-Dec-03 7:15 
Generalremove other user preferences Pin
osyris9713-Dec-03 11:07
osyris9713-Dec-03 11:07 
GeneralRe: remove other user preferences Pin
valikac13-Dec-03 13:08
valikac13-Dec-03 13:08 
GeneralRe: remove other user preferences Pin
Mike Dimmick14-Dec-03 5:22
Mike Dimmick14-Dec-03 5:22 
GeneralDatabase Drivers Pin
Roger Wright13-Dec-03 10:33
professionalRoger Wright13-Dec-03 10:33 
GeneralRe: Database Drivers Pin
Roger Stewart13-Dec-03 13:46
professionalRoger Stewart13-Dec-03 13:46 
GeneralRe: Database Drivers Pin
Roger Wright13-Dec-03 14:02
professionalRoger Wright13-Dec-03 14:02 
GeneralRe: Database Drivers Pin
Roger Stewart13-Dec-03 14:12
professionalRoger Stewart13-Dec-03 14:12 
GeneralRe: Database Drivers Pin
Roger Wright13-Dec-03 15:13
professionalRoger Wright13-Dec-03 15:13 
Generalsimply standard Pin
forjer13-Dec-03 11:03
forjer13-Dec-03 11:03 
QuestionHow to make an auto-scroll ListBox Pin
UWO13-Dec-03 10:24
UWO13-Dec-03 10:24 
AnswerHere's the answer Pin
v_srinu_26_f13-Dec-03 13:32
v_srinu_26_f13-Dec-03 13:32 
GeneralRe: Here's the answer Pin
UWO13-Dec-03 19:20
UWO13-Dec-03 19:20 

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.