Click here to Skip to main content
15,902,938 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: help needed Pin
29-Apr-02 2:51
suss29-Apr-02 2:51 
GeneralRe: help needed Pin
29-Apr-02 3:05
suss29-Apr-02 3:05 
GeneralRe: help needed Pin
29-Apr-02 3:32
suss29-Apr-02 3:32 
Generali have trouble with my static backgrounds... Pin
Atilla Selem29-Apr-02 2:28
Atilla Selem29-Apr-02 2:28 
GeneralWindows Script Host Pin
soup29-Apr-02 1:42
soup29-Apr-02 1:42 
GeneralRe: Windows Script Host Pin
Michael P Butler29-Apr-02 3:31
Michael P Butler29-Apr-02 3:31 
GeneralSilly MFC CString Question Pin
carrie29-Apr-02 1:42
carrie29-Apr-02 1:42 
GeneralRe: Silly MFC CString Question Pin
Christian Graus29-Apr-02 2:43
protectorChristian Graus29-Apr-02 2:43 
carrie wrote:
I'm trying to make a dialog based program that will allow someone to pick a text file, the program loads it up and then there will be a list of things. No probs on getting to pick the txt file but what I need is for the program to be able to notice duplicate entries in the txt file and then pick one of them out, ignoring the rest of the duplicates.

Easy - let STL do the dirty work for you. If you store the information in an STL set, it will discard duplicates as you go. I've written an article on this, just search for 'graus map set' to find it. You can also read a text file into an STL container in just three lines of code - I show that in my STL articles as well.

I don't see anything wrong with the string you're setting, but if you're getting an escape code erro,r chances are you tried to insert a \, and forgot to put two of them, as \\ is the code for \, as \ denotes the begining of an escape code, such as \n for newline, or \r for return.

Don't feel silly, you should see some of the stuff I asked when I was starting. We all start somewhere.


Christian

The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
GeneralToolTip Problem Pin
Kyudos29-Apr-02 1:36
Kyudos29-Apr-02 1:36 
GeneralRe: ToolTip Problem Pin
Ravi Bhavnani29-Apr-02 3:21
professionalRavi Bhavnani29-Apr-02 3:21 
QuestionA bug? And what to do to fix it? Pin
Igor Urdenko29-Apr-02 0:23
Igor Urdenko29-Apr-02 0:23 
AnswerRe: A bug? And what to do to fix it? Pin
Roger Allen29-Apr-02 0:28
Roger Allen29-Apr-02 0:28 
GeneralI did, but... Pin
Igor Urdenko29-Apr-02 0:43
Igor Urdenko29-Apr-02 0:43 
GeneralRe: I did, but... Pin
Roger Allen29-Apr-02 1:38
Roger Allen29-Apr-02 1:38 
GeneralThank you. Pin
Igor Urdenko29-Apr-02 3:16
Igor Urdenko29-Apr-02 3:16 
AnswerRe: A bug? And what to do to fix it? Pin
Maxwell Chen29-Apr-02 1:42
Maxwell Chen29-Apr-02 1:42 
GeneralYES!!! Pin
Igor Urdenko29-Apr-02 3:14
Igor Urdenko29-Apr-02 3:14 
GeneralRe: A bug? And what to do to fix it? Pin
Roger Allen29-Apr-02 3:46
Roger Allen29-Apr-02 3:46 
Generalmore info about the tli tlh files editing Q Pin
Aviv Halperin29-Apr-02 0:02
Aviv Halperin29-Apr-02 0:02 
GeneralRe: more info about the tli tlh files editing Q Pin
Christian Graus29-Apr-02 0:10
protectorChristian Graus29-Apr-02 0:10 
GeneralRe: more info about the tli tlh files editing Q Pin
Aviv Halperin29-Apr-02 0:25
Aviv Halperin29-Apr-02 0:25 
Generalarrays Pin
Jasmin Khan28-Apr-02 23:16
Jasmin Khan28-Apr-02 23:16 
GeneralRe: arrays Pin
Niklas L28-Apr-02 23:43
Niklas L28-Apr-02 23:43 
GeneralRe: arrays Pin
Jasmin Khan28-Apr-02 23:49
Jasmin Khan28-Apr-02 23:49 
Generalwhere to get the windows xp icon(the icon for system ,toolbar..) Pin
benben28-Apr-02 22:51
benben28-Apr-02 22:51 

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.