Click here to Skip to main content
15,917,731 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: unicode equivalent of Readfile() function.. Pin
Rajesh R Subramanian14-Jul-09 22:57
professionalRajesh R Subramanian14-Jul-09 22:57 
AnswerRe: unicode equivalent of Readfile() function.. Pin
Rakesh514-Jul-09 23:36
Rakesh514-Jul-09 23:36 
QuestionRe: unicode equivalent of Readfile() function.. [modified] Pin
Rajesh R Subramanian14-Jul-09 23:52
professionalRajesh R Subramanian14-Jul-09 23:52 
AnswerRe: unicode equivalent of Readfile() function.. Pin
CPallini14-Jul-09 23:09
mveCPallini14-Jul-09 23:09 
AnswerRe: unicode equivalent of Readfile() function.. Pin
Nishad S15-Jul-09 0:38
Nishad S15-Jul-09 0:38 
Questionwhat is IWshRuntimeLibrary? Pin
V K 214-Jul-09 22:03
V K 214-Jul-09 22:03 
AnswerRe: what is IWshRuntimeLibrary? Pin
CPallini14-Jul-09 22:13
mveCPallini14-Jul-09 22:13 
Questiontoolbar controls Pin
Member 59031014-Jul-09 21:29
Member 59031014-Jul-09 21:29 
AnswerRe: toolbar controls Pin
_AnsHUMAN_ 14-Jul-09 21:38
_AnsHUMAN_ 14-Jul-09 21:38 
AnswerRe: toolbar controls Pin
Stuart Dootson14-Jul-09 21:45
professionalStuart Dootson14-Jul-09 21:45 
GeneralRe: toolbar controls Pin
Member 59031014-Jul-09 23:58
Member 59031014-Jul-09 23:58 
QuestionHow to read command line arguments in vc++ Pin
KASR114-Jul-09 21:11
KASR114-Jul-09 21:11 
AnswerRe: How to read command line arguments in vc++ Pin
_AnsHUMAN_ 14-Jul-09 21:31
_AnsHUMAN_ 14-Jul-09 21:31 
AnswerRe: How to read command line arguments in vc++ Pin
Rajesh R Subramanian14-Jul-09 21:32
professionalRajesh R Subramanian14-Jul-09 21:32 
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 
thank you very much this exactly what i want

but if u do not mind i want to ask u some questions about the code that u wrote

#include <direct.h>
#include <fstream>
#include <iostream>

using namespace std;

int main()
{	
    char root;
    char path[64]; //why did u declare path as char and set it to 64
    cin >> root;
    sprintf_s(path, "%c:/autorun.inf", root); //what does this thing mean (%c)
    _mkdir(path);	
    sprintf_s(path, "%s/protection.txt", path); //why did u put two (path) and why did u put here %s instead of %c
    ofstream output(path,ios::out);	
    output.close();	
    return 0;
}


again thank u very much
GeneralRe: help in modifying a code? Pin
carter200014-Jul-09 18:59
carter200014-Jul-09 18:59 
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 

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.