Click here to Skip to main content
15,885,546 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Hi,


You should also consider the use of std::vector<char>
To the best of my knowledge, the std requires that elements should be allocated contiguosly (not sure)

Consider

std::vector<char> buffer;
buffer.resize(n);
legacy_function(&(buffer.at(0)),buffer.size());


Comments:
I am not comparing anything. Just another "tool/way" to do things that is worth be aware of

Regards,

R.

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 
GeneralRe: Urgent help needed. enquire within Pin
Nish Nishant15-Apr-02 7:00
sitebuilderNish Nishant15-Apr-02 7:00 
GeneralRe: Urgent help needed. enquire within Pin
15-Apr-02 7:12
suss15-Apr-02 7:12 
GeneralRe: Urgent help needed. enquire within Pin
Nish Nishant15-Apr-02 7:23
sitebuilderNish Nishant15-Apr-02 7:23 
GeneralRe: Urgent help needed. enquire within Pin
15-Apr-02 7:35
suss15-Apr-02 7:35 
GeneralRe: Urgent help needed. enquire within Pin
15-Apr-02 22:39
suss15-Apr-02 22:39 
GeneralRe: Urgent help needed. enquire within Pin
Nish Nishant15-Apr-02 6:41
sitebuilderNish Nishant15-Apr-02 6:41 

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.