Click here to Skip to main content
15,902,894 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to read command line arguments in vc++ Pin
CPallini14-Jul-09 21:39
mveCPallini14-Jul-09 21:39 
GeneralRe: How to read command line arguments in vc++ Pin
KASR114-Jul-09 22:24
KASR114-Jul-09 22:24 
AnswerRe: How to read command line arguments in vc++ Pin
Member 392263915-Jul-09 2:25
Member 392263915-Jul-09 2:25 
Questionhelp in modifying a code?[SOLVED] Pin
jon ray14-Jul-09 18:04
jon ray14-Jul-09 18:04 
AnswerRe: help in modifying a code? Pin
chandu00414-Jul-09 18:09
chandu00414-Jul-09 18:09 
AnswerRe: help in modifying a code? Pin
carter200014-Jul-09 18:28
carter200014-Jul-09 18:28 
GeneralRe: help in modifying a code? Pin
jon ray14-Jul-09 18:46
jon ray14-Jul-09 18:46 
GeneralRe: help in modifying a code? Pin
carter200014-Jul-09 18:59
carter200014-Jul-09 18:59 
I'm a chinese, my English may be hard to read, I'm sorry for that. But i will try to explain it.

jon ray wrote:
char path[64]; //why did u declare path as char and set it to 64


64 isn't a regular number, I got it by counting the length of your longest full path "e:\\autorun.inf\\protection.txt", and just pick a number more than it.


jon ray wrote:
sprintf_s(path, "%c:/autorun.inf", root); //what does this thing mean (%c)


%c is mean that it's a character but not others(string), and it's value is determined by 'root'


jon ray wrote:
sprintf_s(path, "%s/protection.txt", path); //why did u put two (path) and why did u put here %s instead of %c


%s is mean that it's a string, and it's value is determined by 'path'.
the second 'path' is use to replace the '%s', and then put the result "%s/protection.txt" to the first 'path', now 'path' has become the full path what you want.
GeneralRe: help in modifying a code? Pin
David Crow15-Jul-09 3:11
David Crow15-Jul-09 3:11 
Questioncommand buttons Pin
Member 59031014-Jul-09 17:46
Member 59031014-Jul-09 17:46 
AnswerRe: command buttons Pin
chandu00414-Jul-09 18:04
chandu00414-Jul-09 18:04 
GeneralRe: command buttons Pin
Member 59031014-Jul-09 18:09
Member 59031014-Jul-09 18:09 
GeneralRe: command buttons Pin
chandu00414-Jul-09 18:11
chandu00414-Jul-09 18:11 
GeneralRe: command buttons Pin
Member 59031014-Jul-09 18:12
Member 59031014-Jul-09 18:12 
GeneralRe: command buttons Pin
Member 59031014-Jul-09 18:12
Member 59031014-Jul-09 18:12 
AnswerRe: command buttons Pin
«_Superman_»14-Jul-09 19:53
professional«_Superman_»14-Jul-09 19:53 
QuestionBuffering incoming packets Pin
resolvequestion14-Jul-09 17:36
resolvequestion14-Jul-09 17:36 
AnswerRe: Buffering incoming packets Pin
«_Superman_»14-Jul-09 17:56
professional«_Superman_»14-Jul-09 17:56 
AnswerRe: Buffering incoming packets Pin
Richard Andrew x6414-Jul-09 20:05
professionalRichard Andrew x6414-Jul-09 20:05 
AnswerRe: Buffering incoming packets Pin
Stuart Dootson14-Jul-09 21:36
professionalStuart Dootson14-Jul-09 21:36 
GeneralRe: Buffering incoming packets Pin
resolvequestion15-Jul-09 3:30
resolvequestion15-Jul-09 3:30 
QuestionHow to read and display the height map from STL File? Pin
DevelopmentNoob14-Jul-09 15:44
DevelopmentNoob14-Jul-09 15:44 
AnswerRe: How to read and display the height map from STL File? Pin
DevelopmentNoob14-Jul-09 20:42
DevelopmentNoob14-Jul-09 20:42 
GeneralRe: How to read and display the height map from STL File? Pin
CPallini14-Jul-09 21:14
mveCPallini14-Jul-09 21:14 
GeneralRe: How to read and display the height map from STL File? Pin
DevelopmentNoob16-Jul-09 21:22
DevelopmentNoob16-Jul-09 21:22 

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.