Click here to Skip to main content
15,895,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: sprintf formatting with conditional statement Pin
Ian Darling5-Jan-04 9:01
Ian Darling5-Jan-04 9:01 
GeneralRe: sprintf formatting with conditional statement Pin
Tyler Kellen5-Jan-04 9:05
Tyler Kellen5-Jan-04 9:05 
GeneralRe: sprintf formatting with conditional statement Pin
Jörgen Sigvardsson5-Jan-04 9:45
Jörgen Sigvardsson5-Jan-04 9:45 
GeneralRe: sprintf formatting with conditional statement Pin
Ian Darling5-Jan-04 9:53
Ian Darling5-Jan-04 9:53 
GeneralRe: sprintf formatting with conditional statement Pin
Jörgen Sigvardsson5-Jan-04 9:58
Jörgen Sigvardsson5-Jan-04 9:58 
GeneralRe: sprintf formatting with conditional statement Pin
Ian Darling5-Jan-04 10:06
Ian Darling5-Jan-04 10:06 
GeneralRe: sprintf formatting with conditional statement Pin
Prakash Nadar5-Jan-04 16:09
Prakash Nadar5-Jan-04 16:09 
GeneralRe: sprintf formatting with conditional statement Pin
shultas5-Jan-04 9:55
shultas5-Jan-04 9:55 
Thank you guys for the posts Big Grin | :-D I knew that thing was in there somewhere!!!!!

I was trying to consolidate the code and make it in as less lines as possible (to make it easier to read / go through) but now I see that in this case it would probably be a bit better to do the IF statement because "sprintf(buf2,"%d File%s Processed",i,(i==1 ? "":"s"));" isn't exactly an eye appeal (although it works exactly like I want it to!) ... and since I do most of my work after a few Jack&Coke's ...... heheheh

Thanks again!
GeneralRe: sprintf formatting with conditional statement Pin
Ian Darling5-Jan-04 9:57
Ian Darling5-Jan-04 9:57 
GeneralRichEdit EN_VSCROLL doesn't send SB_THUMBTRACK Pin
Tyler Kellen5-Jan-04 8:31
Tyler Kellen5-Jan-04 8:31 
QuestionHow to put a carriage return into a CView object? Pin
Cyrus Dang5-Jan-04 7:20
Cyrus Dang5-Jan-04 7:20 
AnswerRe: How to put a carriage return into a CView object? Pin
Chris Meech5-Jan-04 7:29
Chris Meech5-Jan-04 7:29 
GeneralRe: How to put a carriage return into a CView object? Pin
Cyrus Dang5-Jan-04 8:32
Cyrus Dang5-Jan-04 8:32 
GeneralRe: How to put a carriage return into a CView object? Pin
Chris Meech5-Jan-04 8:45
Chris Meech5-Jan-04 8:45 
GeneralRe: How to put a carriage return into a CView object? Pin
Cyrus Dang5-Jan-04 8:49
Cyrus Dang5-Jan-04 8:49 
AnswerRe: How to put a carriage return into a CView object? Pin
David Crow5-Jan-04 7:29
David Crow5-Jan-04 7:29 
AnswerRe: How to put a carriage return into a CView object? Pin
Nick Hodapp5-Jan-04 8:31
sitebuilderNick Hodapp5-Jan-04 8:31 
GeneralRe: How to put a carriage return into a CView object? Pin
Cyrus Dang5-Jan-04 8:38
Cyrus Dang5-Jan-04 8:38 
GeneralLoading Bitmaps Pin
FieldHawk5-Jan-04 7:12
FieldHawk5-Jan-04 7:12 
GeneralRe: Loading Bitmaps Pin
David Crow5-Jan-04 7:17
David Crow5-Jan-04 7:17 
GeneralRe: Loading Bitmaps Pin
abc8765-Jan-04 8:04
abc8765-Jan-04 8:04 
GeneralVC++6, ODBC, and Access 2000 Pin
Roger Wright5-Jan-04 6:42
professionalRoger Wright5-Jan-04 6:42 
GeneralRe: VC++6, ODBC, and Access 2000 Pin
FieldHawk5-Jan-04 7:23
FieldHawk5-Jan-04 7:23 
GeneralRe: VC++6, ODBC, and Access 2000 Pin
Chris Meech5-Jan-04 7:26
Chris Meech5-Jan-04 7:26 
GeneralRe: VC++6, ODBC, and Access 2000 Pin
Roger Wright5-Jan-04 7:50
professionalRoger Wright5-Jan-04 7:50 

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.