Click here to Skip to main content
15,892,480 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: TranslateMessage() doesn't work ! Pin
Rane10-Sep-08 1:40
Rane10-Sep-08 1:40 
GeneralRe: TranslateMessage() doesn't work ! Pin
Mark Salsbery10-Sep-08 5:01
Mark Salsbery10-Sep-08 5:01 
Questionhow to control a console application Pin
eusto9-Sep-08 23:49
eusto9-Sep-08 23:49 
AnswerRe: how to control a console application Pin
sashoalm10-Sep-08 0:27
sashoalm10-Sep-08 0:27 
GeneralRe: how to control a console application Pin
eusto10-Sep-08 0:45
eusto10-Sep-08 0:45 
Questionproblem in executing .bat file Pin
Madan Chauhan9-Sep-08 23:23
Madan Chauhan9-Sep-08 23:23 
QuestionRe: problem in executing .bat file Pin
Michael Schubert10-Sep-08 1:54
Michael Schubert10-Sep-08 1:54 
AnswerRe: problem in executing .bat file Pin
Madan Chauhan10-Sep-08 2:29
Madan Chauhan10-Sep-08 2:29 
Hi thanks for replying,

If I use system() then the command screen will reflect. I want to execute this without any black screen (by hiding the command execution).

When I try to run this .bat file by command prompt(opening cmd as administrator) like- D:\myFolder\mybat.bat then it is saying that 'b' is not recognized as an internal or external command. 'b' is the first character in my command that is written in that file.
If I am not wrong, the problem is arising due to unicode because I am writing the command in to file through my code using WriteFile function and second parameter of this function is as-
csRunCommands = _T("bcdedit /set {bootmgr} device boot > d:\\zzz1.txt");

If I make a bat file in any drive manually and write the same command there then it is getting execute well.

Please give me some solution.

thanks
GeneralRe: problem in executing .bat file Pin
Michael Schubert10-Sep-08 2:47
Michael Schubert10-Sep-08 2:47 
GeneralRe: problem in executing .bat file Pin
Madan Chauhan10-Sep-08 2:52
Madan Chauhan10-Sep-08 2:52 
GeneralRe: problem in executing .bat file Pin
Michael Schubert10-Sep-08 3:15
Michael Schubert10-Sep-08 3:15 
GeneralRe: problem in executing .bat file Pin
Madan Chauhan10-Sep-08 3:24
Madan Chauhan10-Sep-08 3:24 
GeneralRe: problem in executing .bat file Pin
Michael Schubert10-Sep-08 3:49
Michael Schubert10-Sep-08 3:49 
AnswerRe: problem in executing .bat file Pin
Rane10-Sep-08 2:08
Rane10-Sep-08 2:08 
GeneralRe: problem in executing .bat file Pin
Madan Chauhan10-Sep-08 3:00
Madan Chauhan10-Sep-08 3:00 
QuestionRe: problem in executing .bat file Pin
David Crow10-Sep-08 4:04
David Crow10-Sep-08 4:04 
QuestionCant register MFC-DLL when i have a call to CImageList::DeleteImageList Pin
gn0tto9-Sep-08 23:06
gn0tto9-Sep-08 23:06 
AnswerRe: Cant register MFC-DLL when i have a call to CImageList::DeleteImageList Pin
gn0tto9-Sep-08 23:25
gn0tto9-Sep-08 23:25 
AnswerRe: Cant register MFC-DLL when i have a call to CImageList::DeleteImageList Pin
gn0tto10-Sep-08 1:52
gn0tto10-Sep-08 1:52 
AnswerRe: Cant register MFC-DLL when i have a call to CImageList::DeleteImageList Pin
Michael Dunn10-Sep-08 11:42
sitebuilderMichael Dunn10-Sep-08 11:42 
GeneralRe: Cant register MFC-DLL when i have a call to CImageList::DeleteImageList Pin
gn0tto10-Sep-08 23:05
gn0tto10-Sep-08 23:05 
Questionabout tab control Pin
DSPCottage9-Sep-08 22:22
DSPCottage9-Sep-08 22:22 
AnswerRe: about tab control Pin
Rane9-Sep-08 22:58
Rane9-Sep-08 22:58 
AnswerRe: about tab control Pin
Michael Dunn10-Sep-08 11:43
sitebuilderMichael Dunn10-Sep-08 11:43 
QuestionEnding a Thread Pin
sunny_vc9-Sep-08 21:39
sunny_vc9-Sep-08 21:39 

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.