Click here to Skip to main content
16,007,885 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralQuestion about memory leak in STL vector. Pin
George217-Feb-03 1:32
George217-Feb-03 1:32 
GeneralRe: Question about memory leak in STL vector. Pin
Tim Smith17-Feb-03 2:03
Tim Smith17-Feb-03 2:03 
GeneralRe: Question about memory leak in STL vector. Pin
George217-Feb-03 2:27
George217-Feb-03 2:27 
GeneralRe: Question about memory leak in STL vector. Pin
Tim Smith17-Feb-03 4:37
Tim Smith17-Feb-03 4:37 
GeneralRe: Question about memory leak in STL vector. Pin
George217-Feb-03 15:31
George217-Feb-03 15:31 
GeneralRe: Question about memory leak in STL vector. Pin
Tim Smith18-Feb-03 2:11
Tim Smith18-Feb-03 2:11 
GeneralRe: Question about memory leak in STL vector. Pin
George218-Feb-03 14:44
George218-Feb-03 14:44 
GeneralDirect buffer access to STL string Pin
Neville Franks16-Feb-03 17:18
Neville Franks16-Feb-03 17:18 
In MFC we can use: CString::GetBuffer() or GetBufferSetLength()
- muck with string - then CString::ReleaseBuffer() to work directly with the internal buffer.

In STL we can use s.reserve( .. ); s.data(); which I assume will work, but how do we set the new size. Calling s.reserve() when we are done makes some sense, but how do we set the new size. My reference for reserve() says it may or may not resize the internal buffer, but it doesn't sound like it sets the length.

Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
GeneralRe: Direct buffer access to STL string Pin
markkuk17-Feb-03 1:52
markkuk17-Feb-03 1:52 
GeneralRe: Direct buffer access to STL string Pin
Neville Franks18-Feb-03 20:29
Neville Franks18-Feb-03 20:29 
QuestionIs it common for implementation in .h files? Pin
TigerNinja_16-Feb-03 15:16
TigerNinja_16-Feb-03 15:16 
AnswerRe: Is it common for implementation in .h files? Pin
Michael Dunn16-Feb-03 15:26
sitebuilderMichael Dunn16-Feb-03 15:26 
GeneralRe: Is it common for implementation in .h files? Pin
Tim Smith17-Feb-03 2:08
Tim Smith17-Feb-03 2:08 
GeneralInvalidCastException from remote object that use COM Pin
itay_k16-Feb-03 4:48
itay_k16-Feb-03 4:48 
GeneralQuestion about bind2nd. Pin
George214-Feb-03 20:04
George214-Feb-03 20:04 
GeneralRe: Question about bind2nd. Pin
AlexO15-Feb-03 5:43
AlexO15-Feb-03 5:43 
GeneralRe: Question about bind2nd. Pin
George215-Feb-03 17:04
George215-Feb-03 17:04 
GeneralIClassFactory2 Pin
Raphael Amorim14-Feb-03 4:00
professionalRaphael Amorim14-Feb-03 4:00 
QuestionIDispatch from atl-control??? Pin
Zizilamoroso14-Feb-03 1:35
Zizilamoroso14-Feb-03 1:35 
AnswerRe: IDispatch from atl-control??? Pin
geo_m14-Feb-03 2:37
geo_m14-Feb-03 2:37 
GeneralRe: IDispatch from atl-control??? Pin
Zizilamoroso14-Feb-03 4:06
Zizilamoroso14-Feb-03 4:06 
GeneralRe: IDispatch from atl-control??? Pin
geo_m14-Feb-03 4:27
geo_m14-Feb-03 4:27 
GeneralRe: IDispatch from atl-control??? Pin
Zizilamoroso14-Feb-03 4:54
Zizilamoroso14-Feb-03 4:54 
GeneralRe: IDispatch from atl-control??? Pin
geo_m14-Feb-03 5:14
geo_m14-Feb-03 5:14 
GeneralRe: IDispatch from atl-control??? Pin
Zizilamoroso14-Feb-03 6:01
Zizilamoroso14-Feb-03 6:01 

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.