Click here to Skip to main content
15,890,123 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: WTL 7 MTPad Example Errors Pin
Paul M Watt15-Aug-02 19:58
mentorPaul M Watt15-Aug-02 19:58 
GeneralRe: WTL 7 MTPad Example Errors Pin
Stuart Dootson15-Aug-02 20:51
professionalStuart Dootson15-Aug-02 20:51 
GeneralRe: WTL 7 MTPad Example Errors Pin
Ed Gadziemski19-Aug-02 12:07
professionalEd Gadziemski19-Aug-02 12:07 
Generalowner-draw menu Pin
Gabriel.P.G13-Aug-02 12:57
Gabriel.P.G13-Aug-02 12:57 
GeneralRe: owner-draw menu Pin
Michael Dunn13-Aug-02 13:13
sitebuilderMichael Dunn13-Aug-02 13:13 
GeneralATL Service and hidden windows Pin
Michael P Butler13-Aug-02 1:09
Michael P Butler13-Aug-02 1:09 
GeneralRe: ATL Service and hidden windows Pin
Michael Dunn13-Aug-02 13:14
sitebuilderMichael Dunn13-Aug-02 13:14 
Generalstl and sprints/sscans Pin
Iccle12-Aug-02 21:12
Iccle12-Aug-02 21:12 
Im trying to program an STL version of sprints and sscans using stl strings to format a variable number of arguments and print to or read from a string, but have become hopelessly lost in format flags/precisions etc.

Function headers i would like to expose are:
int SPrintS( std::string buffer, const std::string format, ...);
... and ...Confused | :confused:
int SScanS( std::string buffer, const std::string format, ...);

Both functions return the number of chars read/written to the string or -1 on conversion failure.

In the implementation of these functions i dont want to call the c version of sprints or sscans (or svprintf etc).

I understand how to deal with variable arguments, the problem im having is in parsing the format specifier, it takes the general form:

%[flags] [width] [.precision] [{h | l | I64 | L}]type

My attempts at a parse function always seems to become unruly then break down before it can cope with the complete range of optional prefixes to a type (those within [] ), that coupled with format strings can contain any number of format specifiers.

Any suggstions as to the way forward would be welcomed.


GeneralRe: stl and sprints/sscans Pin
Anonymous12-Aug-02 22:11
Anonymous12-Aug-02 22:11 
GeneralRe: stl and sprints/sscans Pin
Li Lirong12-Aug-02 22:58
Li Lirong12-Aug-02 22:58 
GeneralRe: stl and sprints/sscans Pin
Iccle13-Aug-02 20:50
Iccle13-Aug-02 20:50 
GeneralUseful WTL links Pin
Rob Caldecott11-Aug-02 22:59
Rob Caldecott11-Aug-02 22:59 
QuestionWhat is WTL ??? Pin
Hadi Rezaee11-Aug-02 21:13
Hadi Rezaee11-Aug-02 21:13 
AnswerRe: What is WTL ??? Pin
Paul M Watt11-Aug-02 22:01
mentorPaul M Watt11-Aug-02 22:01 
GeneralRe: What is WTL ??? Pin
Hadi Rezaee12-Aug-02 0:57
Hadi Rezaee12-Aug-02 0:57 
Questionwhere is WTL 7.0 ? Pin
Ancient Dragon10-Aug-02 15:23
Ancient Dragon10-Aug-02 15:23 
AnswerRe: where is WTL 7.0 ? Pin
Rene De La Garza10-Aug-02 18:22
Rene De La Garza10-Aug-02 18:22 
GeneralOut param. Collection Type from ATL Pin
Shailaja10-Aug-02 3:25
Shailaja10-Aug-02 3:25 
GeneralRe: Out param. Collection Type from ATL Pin
Michael Dunn10-Aug-02 5:25
sitebuilderMichael Dunn10-Aug-02 5:25 
GeneralRe: Out param. Collection Type from ATL Pin
Ancient Dragon11-Aug-02 0:49
Ancient Dragon11-Aug-02 0:49 
GeneralI love WTL Pin
clintsinger9-Aug-02 7:21
clintsinger9-Aug-02 7:21 
GeneralRe: I love WTL Pin
loket9-Aug-02 11:32
loket9-Aug-02 11:32 
GeneralRe: I love WTL Pin
Rob Caldecott10-Aug-02 2:57
Rob Caldecott10-Aug-02 2:57 
GeneralFuture of WTL Pin
Ed Gadziemski8-Aug-02 13:10
professionalEd Gadziemski8-Aug-02 13:10 
GeneralRe: Future of WTL Pin
Rama Krishna Vavilala8-Aug-02 14:02
Rama Krishna Vavilala8-Aug-02 14:02 

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.