Click here to Skip to main content
15,899,679 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: how to proceed with Notification of emails using Mapi. Pin
Steve S30-Aug-06 7:14
Steve S30-Aug-06 7:14 
QuestionHow I can get listview subitem text of a listview on another process? Pin
Marco225028-Aug-06 9:05
Marco225028-Aug-06 9:05 
QuestionGet Parent handle in ATL Windowless Control Pin
QuickDeveloper27-Aug-06 22:50
QuickDeveloper27-Aug-06 22:50 
AnswerRe: Get Parent handle in ATL Windowless Control Pin
Roland Rüdenauer17-Sep-06 12:02
Roland Rüdenauer17-Sep-06 12:02 
Questionowner draw CReBarCtrl [modified] Pin
Max Santos26-Aug-06 6:22
Max Santos26-Aug-06 6:22 
AnswerRe: owner draw CReBarCtrl Pin
Justin Tay26-Aug-06 15:58
Justin Tay26-Aug-06 15:58 
AnswerRe: owner draw CReBarCtrl Pin
count08-Sep-06 17:50
count08-Sep-06 17:50 
Questionvector vs. CByteArray [modified] Pin
bob1697225-Aug-06 4:06
bob1697225-Aug-06 4:06 
I've read enough comments to users (including myself) from others telling them to use STL containers in favor of MFC containers so I decided I would give it a try on my next review of my encoding classes. Well, I'm there and bought as many books I could find with chapters on STL and did some googling but most of the documentation fails to point me in the right direction in my search to replace certain functionality found in CByteArray.

It may be there but I must admit I'm a little overwhelmed at this point so I apologize for the post.

My question:

I know in advance the approx. initial size needed for the container and reasonable "Grow by" values and would like to set these like CByteArray::SetSize allows. The procedures I'm trying to revamp are for encoding/decoding Base64, Ascii85, etc... so I can't afford for numerous allocation requests. How do I set the initial size and grow by values for vector? Is this too much to bite off for an STL newbee trying to learn STL and fitting it into their production schedule somehow without getting into a lot of trouble?


-- modified at 10:41 Friday 25th August, 2006

Scratch the first question about initial size. Bjarne Stroustrup explicitly mentions how to do it in his book. I'm just missing this stuff first time aroound because I'm not at all fluent in the template arena. The Growby question is still active though.

Thanks
AnswerRe: vector vs. CByteArray Pin
Stuart Dootson25-Aug-06 5:33
professionalStuart Dootson25-Aug-06 5:33 
GeneralRe: vector vs. CByteArray Pin
bob1697225-Aug-06 5:55
bob1697225-Aug-06 5:55 
GeneralRe: vector vs. CByteArray Pin
Zac Howland25-Aug-06 7:48
Zac Howland25-Aug-06 7:48 
GeneralRe: vector vs. CByteArray Pin
Stuart Dootson28-Aug-06 21:13
professionalStuart Dootson28-Aug-06 21:13 
GeneralRe: vector vs. CByteArray Pin
Zac Howland29-Aug-06 4:26
Zac Howland29-Aug-06 4:26 
GeneralRe: vector vs. CByteArray Pin
Jörgen Sigvardsson30-Aug-06 21:25
Jörgen Sigvardsson30-Aug-06 21:25 
QuestionHow to use WTL's CDoubleBufferImpl Pin
shaohao25-Aug-06 4:04
shaohao25-Aug-06 4:04 
AnswerRe: How to use WTL's CDoubleBufferImpl Pin
Stuart Dootson25-Aug-06 5:34
professionalStuart Dootson25-Aug-06 5:34 
AnswerRe: How to use WTL's CDoubleBufferImpl Pin
Michael Dunn25-Aug-06 7:39
sitebuilderMichael Dunn25-Aug-06 7:39 
QuestionCalling a ATL COM DLL interface from VBScript routine Pin
AKSIVAKUMAR23-Aug-06 23:11
AKSIVAKUMAR23-Aug-06 23:11 
QuestionHow does the WTL CString compare with CString from MFC? Pin
TClarke23-Aug-06 6:43
TClarke23-Aug-06 6:43 
AnswerRe: How does the WTL CString compare with CString from MFC? Pin
Stuart Dootson23-Aug-06 8:48
professionalStuart Dootson23-Aug-06 8:48 
AnswerRe: How does the WTL CString compare with CString from MFC? Pin
Zac Howland23-Aug-06 9:54
Zac Howland23-Aug-06 9:54 
AnswerRe: How does the WTL CString compare with CString from MFC? Pin
Michael Dunn23-Aug-06 11:56
sitebuilderMichael Dunn23-Aug-06 11:56 
GeneralRe: How does the WTL CString compare with CString from MFC? Pin
TClarke23-Aug-06 23:06
TClarke23-Aug-06 23:06 
QuestionUsing WTL with ATL to enhance ActiveX controls Pin
TClarke23-Aug-06 6:39
TClarke23-Aug-06 6:39 
AnswerRe: Using WTL with ATL to enhance ActiveX controls Pin
Jörgen Sigvardsson26-Aug-06 9:24
Jörgen Sigvardsson26-Aug-06 9:24 

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.