Click here to Skip to main content
15,891,657 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: BUG Pin
Tim Smith15-Apr-02 8:01
Tim Smith15-Apr-02 8:01 
GeneralRe: BUG Pin
Tim Smith15-Apr-02 8:09
Tim Smith15-Apr-02 8:09 
QuestionHow to get handle of control ? Pin
dlhson15-Apr-02 6:29
dlhson15-Apr-02 6:29 
AnswerRe: How to get handle of control ? Pin
Nish Nishant15-Apr-02 6:39
sitebuilderNish Nishant15-Apr-02 6:39 
AnswerRe: How to get handle of control ? Pin
Paul M Watt15-Apr-02 7:38
mentorPaul M Watt15-Apr-02 7:38 
AnswerRe: How to get handle of control ? Pin
Carlos Antollini15-Apr-02 7:48
Carlos Antollini15-Apr-02 7:48 
GeneralRe: How to get handle of control ? Pin
Carlos Antollini16-Apr-02 8:45
Carlos Antollini16-Apr-02 8:45 
QuestionSTL string : is it any good? Pin
Jon Hulatt15-Apr-02 6:16
Jon Hulatt15-Apr-02 6:16 
I've been tinkering a little with STL after my brief run-in with the map template the other week. It took me a while to recover from that episode; but i've been having a go with the string thing.

My current program users c strings (char arrays, not that mfc bunk). I can already hear Christian muttering in the background. I used them becuase my program has the following traits:

-> lots of scanf and sprintf type stuff goes on, to jam integers to and from strings.

-> I'm using sockets and use char pointers to muck about with the input buffer that i receive through my socket.

-> one part of my program decodes a mime- formatted email body. as you may know, this is a hierarchical structure where a section consists of a header and a body. a body could also be a section in it's own right, consisting of a header and a body. Right now, i start with one big char pointer, and i call a function recursively on each body section to decode. This makes extensive use of tricking a c-type string into multiple separate strings by sticking \0 in the correct places.


I'm worried that reimplementing my program using stl is going to be a nightmare. Can someone please explain to me how it will in fact be a delightful process instead.

Jon

Sorry to dissapoint you all with my lack of a witty or poignant signature.
AnswerRe: STL string : is it any good? Pin
Anders Molin15-Apr-02 7:03
professionalAnders Molin15-Apr-02 7:03 
GeneralRe: STL string : is it any good? Pin
Tim Smith15-Apr-02 7:14
Tim Smith15-Apr-02 7:14 
GeneralRe: STL string : is it any good? Pin
Tim Smith15-Apr-02 7:15
Tim Smith15-Apr-02 7:15 
GeneralRe: STL string : is it any good? Pin
Jörgen Sigvardsson15-Apr-02 9:28
Jörgen Sigvardsson15-Apr-02 9:28 
GeneralRe: STL string : is it any good? Pin
Tim Smith15-Apr-02 9:37
Tim Smith15-Apr-02 9:37 
AnswerRe: STL string : is it any good? Pin
Ramon Casellas15-Apr-02 7:31
Ramon Casellas15-Apr-02 7:31 
GeneralRe: STL string : is it any good? Pin
Joaquín M López Muñoz15-Apr-02 8:38
Joaquín M López Muñoz15-Apr-02 8:38 
GeneralRe: STL string : is it any good? Pin
Tim Smith15-Apr-02 9:02
Tim Smith15-Apr-02 9:02 
GeneralRe: STL string : is it any good? Pin
Joaquín M López Muñoz15-Apr-02 9:46
Joaquín M López Muñoz15-Apr-02 9:46 
GeneralRe: STL string : is it any good? Pin
Tim Smith15-Apr-02 9:57
Tim Smith15-Apr-02 9:57 
GeneralRe: STL string : is it any good? Pin
Giles15-Apr-02 9:26
Giles15-Apr-02 9:26 
GeneralRe: STL string : is it any good? Pin
Mike Nordell15-Apr-02 11:02
Mike Nordell15-Apr-02 11:02 
GeneralUrgent help needed. enquire within Pin
15-Apr-02 5:59
suss15-Apr-02 5:59 
GeneralRe: Urgent help needed. enquire within Pin
Joaquín M López Muñoz15-Apr-02 6:35
Joaquín M López Muñoz15-Apr-02 6:35 
GeneralRe: Urgent help needed. enquire within Pin
15-Apr-02 6:40
suss15-Apr-02 6:40 
GeneralRe: Urgent help needed. enquire within Pin
Nish Nishant15-Apr-02 6:42
sitebuilderNish Nishant15-Apr-02 6:42 
GeneralRe: Urgent help needed. enquire within Pin
15-Apr-02 6:52
suss15-Apr-02 6:52 

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.