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

C / C++ / MFC

 
GeneralRe: How to monitor file operations Pin
shaomin8-Jan-04 12:55
shaomin8-Jan-04 12:55 
GeneralCalling UpdateData(FALSE) will screw my RadioButton-group selection Pin
andreir235-Jan-04 9:33
andreir235-Jan-04 9:33 
GeneralRe: Calling UpdateData(FALSE) will screw my RadioButton-group selection Pin
abc8765-Jan-04 10:05
abc8765-Jan-04 10:05 
GeneralRe: Calling UpdateData(FALSE) will screw my RadioButton-group selection Pin
David Crow5-Jan-04 10:13
David Crow5-Jan-04 10:13 
GeneralRe: Calling UpdateData(FALSE) will screw my RadioButton-group selection Pin
andreir235-Jan-04 11:17
andreir235-Jan-04 11:17 
GeneralRe: Calling UpdateData(FALSE) will screw my RadioButton-group selection Pin
abc8765-Jan-04 20:20
abc8765-Jan-04 20:20 
GeneralRe: Calling UpdateData(FALSE) will screw my RadioButton-group selection Pin
Nick Hodapp5-Jan-04 10:27
sitebuilderNick Hodapp5-Jan-04 10:27 
Generalsprintf formatting with conditional statement Pin
shultas5-Jan-04 8:45
shultas5-Jan-04 8:45 
Hello all.

I can't seem to find this anywhere, but I do remember at some point in time I've used this in c, for printf.

What I'm basically trying to do is conditionally format my sprintf() statement to display an "s" character if an integer is greater than one.

Sort of like this:
if (x>1) {
sprintf(buf,"%d files processed",x);
} else {
sprintf(buf,"%d file processed,x);
}

Except I do not wish to use an if statement like that.

I remember somewhere that you can do this with some sort of printf(...? i>1...); I remember it had something to do with a question mark in there but that's all I can remember. Unfortunately a google search of "printf ?" doesn't seem to help me out.


GeneralRe: sprintf formatting with conditional statement Pin
Tyler Kellen5-Jan-04 8:49
Tyler Kellen5-Jan-04 8:49 
GeneralRe: sprintf formatting with conditional statement Pin
abc8765-Jan-04 8:57
abc8765-Jan-04 8:57 
GeneralRe: sprintf formatting with conditional statement Pin
Prakash Nadar5-Jan-04 16:08
Prakash Nadar5-Jan-04 16:08 
GeneralRe: sprintf formatting with conditional statement Pin
abc8765-Jan-04 19:47
abc8765-Jan-04 19:47 
GeneralRe: sprintf formatting with conditional statement Pin
Prakash Nadar5-Jan-04 20:15
Prakash Nadar5-Jan-04 20:15 
GeneralRe: sprintf formatting with conditional statement Pin
abc8765-Jan-04 20:34
abc8765-Jan-04 20:34 
GeneralRe: sprintf formatting with conditional statement Pin
Prakash Nadar5-Jan-04 21:28
Prakash Nadar5-Jan-04 21:28 
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 
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 

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.