Click here to Skip to main content
15,921,793 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: About as win32 question. Pin
sunjohn1-Jun-03 22:09
sunjohn1-Jun-03 22:09 
GeneralRe: About as win32 question. Pin
Toni782-Jun-03 12:20
Toni782-Jun-03 12:20 
GeneralNET SEND ~ HELP ME Pin
BoyceMan1-Jun-03 16:48
BoyceMan1-Jun-03 16:48 
GeneralRe: NET SEND ~ HELP ME Pin
Ken Mazaika1-Jun-03 17:00
Ken Mazaika1-Jun-03 17:00 
GeneralRe: NET SEND ~ HELP ME Pin
Chris Richardson1-Jun-03 17:20
Chris Richardson1-Jun-03 17:20 
GeneralRe: NET SEND ~ HELP ME Pin
Abbas_Riazi1-Jun-03 19:34
professionalAbbas_Riazi1-Jun-03 19:34 
GeneralRe: NET SEND ~ HELP ME Pin
BoyceMan2-Jun-03 9:09
BoyceMan2-Jun-03 9:09 
GeneralRe: NET SEND ~ HELP ME Pin
Tom Wright2-Jun-03 11:49
Tom Wright2-Jun-03 11:49 
Carter
Okay in simple terms

%s is a place holder for whatever you want in it. For example:

line 1. char somestring[] = "really cool";
line 2. sprintf("This is %s", somestring);

The variable somestring (in line 1)is holding the string "really cool".
Line two just replaces the %s with whatever is in the variable.
The go in order. So if you had

sprintf("This is %s and I %s", somestring, anotherstring);


Okay CString. Basically CString is a class that provides support for manipulating strings.

According to MSDN: It is intended to replace and extend the functionality normally provided by the C run-time library string package.

One of the extended functions is the format function. CString is the base class and format is a finction under that class. format allows you to basically setup a string just like using sprintf, where you can use %s or other format variables.

Now I know the other programming guru's out there will complain that I totally did not follow prgramming speaking edict...but how cares just as long as you understand what's going on. I too hate it when these guys speak over my head and I try to keep it at my or some other programmers level so that theres an understanding.
Hope this helps


Tom Wright
tawright915@yahoo.com
GeneralRe: NET SEND ~ HELP ME Pin
BoyceMan2-Jun-03 11:59
BoyceMan2-Jun-03 11:59 
GeneralRe: NET SEND ~ HELP ME Pin
Abbas_Riazi2-Jun-03 19:52
professionalAbbas_Riazi2-Jun-03 19:52 
GeneralRe: NET SEND ~ HELP ME Pin
Anonymous6-Jun-03 9:04
Anonymous6-Jun-03 9:04 
Generalrotate, mirror, drawn objects Pin
shanila1-Jun-03 16:33
shanila1-Jun-03 16:33 
QuestionHow to add bar containing icons in my CFileDialog? Pin
julych1-Jun-03 10:47
julych1-Jun-03 10:47 
AnswerRe: How to add bar containing icons in my CFileDialog? Pin
Mahesh Varma1-Jun-03 23:57
Mahesh Varma1-Jun-03 23:57 
AnswerRe: How to add bar containing icons in my CFileDialog? Pin
Anna-Jayne Metcalfe2-Jun-03 0:01
Anna-Jayne Metcalfe2-Jun-03 0:01 
Generaldouble to string Pin
IceMatrix1-Jun-03 10:09
IceMatrix1-Jun-03 10:09 
GeneralRe: double to string Pin
User 66581-Jun-03 11:13
User 66581-Jun-03 11:13 
GeneralRe: double to string Pin
melwyn2-Jun-03 4:57
melwyn2-Jun-03 4:57 
GeneralRe: double to string Pin
Anna-Jayne Metcalfe2-Jun-03 0:05
Anna-Jayne Metcalfe2-Jun-03 0:05 
GeneralRe: double to string Pin
Trollslayer2-Jun-03 1:07
mentorTrollslayer2-Jun-03 1:07 
GeneralRe: double to string Pin
Anna-Jayne Metcalfe2-Jun-03 1:17
Anna-Jayne Metcalfe2-Jun-03 1:17 
GeneralRe: double to string Pin
IceMatrix2-Jun-03 3:26
IceMatrix2-Jun-03 3:26 
GeneralRe: double to string Pin
Anna-Jayne Metcalfe2-Jun-03 3:39
Anna-Jayne Metcalfe2-Jun-03 3:39 
GeneralRe: double to string Pin
IceMatrix2-Jun-03 4:53
IceMatrix2-Jun-03 4:53 
GeneralUSB notification Pin
paul41-Jun-03 10:00
paul41-Jun-03 10:00 

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.