Click here to Skip to main content
15,893,668 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCMFCRibbonButton with custom width Pin
A&Ms13-Mar-10 19:45
A&Ms13-Mar-10 19:45 
AnswerRe: CMFCRibbonButton with custom width Pin
Eugen Podsypalnikov14-Mar-10 20:44
Eugen Podsypalnikov14-Mar-10 20:44 
QuestionRe: CMFCRibbonButton with custom width Pin
A&Ms15-Mar-10 8:01
A&Ms15-Mar-10 8:01 
QuestionGeneric stack library in c Pin
amitalonm13-Mar-10 14:12
amitalonm13-Mar-10 14:12 
AnswerRe: Generic stack library in c Pin
Nemanja Trifunovic13-Mar-10 14:44
Nemanja Trifunovic13-Mar-10 14:44 
AnswerRe: Generic stack library in c PinPopular
«_Superman_»13-Mar-10 17:04
professional«_Superman_»13-Mar-10 17:04 
AnswerRe: Generic stack library in c Pin
ThatsAlok14-Mar-10 19:20
ThatsAlok14-Mar-10 19:20 
Question"Virtual" Command Prompt Pin
hxhl9513-Mar-10 9:29
hxhl9513-Mar-10 9:29 
Hi All,

I am trying to add a cmd functionality into my app, however it's not working very well and I am looking for alternate methods. What I'm going right now is taking an input command and using CreateProcess with cmd /C *command* > outputFile, then reading the file and displaying the output. However, the problem with this approach is that if I want to start an app, lets say Notepad, I would not be able to do anything else until Notepad closes. As well, the cd command is rendered useless, as when cmd exits and I call another command, the new cmd created by CreateProcess is still at the same directory.

Does anyone have any suggestions for a different approach - perhaps somehow piping the input/output from the cmd window directly to my app?

Thanks very much. Smile | :)
GeneralRe: "Virtual" Command Prompt Pin
hxhl9513-Mar-10 10:52
hxhl9513-Mar-10 10:52 
AnswerRe: "Virtual" Command Prompt Pin
Hristo-Bojilov13-Mar-10 11:39
Hristo-Bojilov13-Mar-10 11:39 
GeneralRe: "Virtual" Command Prompt [modified] Pin
hxhl9513-Mar-10 12:31
hxhl9513-Mar-10 12:31 
GeneralRe: "Virtual" Command Prompt Pin
hxhl9513-Mar-10 13:41
hxhl9513-Mar-10 13:41 
AnswerRe: "Virtual" Command Prompt Pin
Stephen Hewitt13-Mar-10 18:23
Stephen Hewitt13-Mar-10 18:23 
QuestionModeless dialog closing when 'Enter' key is pressed? Pin
Spawn@Melmac13-Mar-10 8:05
Spawn@Melmac13-Mar-10 8:05 
AnswerRe: Modeless dialog closing when 'Enter' key is pressed? Pin
Spawn@Melmac13-Mar-10 8:17
Spawn@Melmac13-Mar-10 8:17 
QuestionSOCKET_ERROR when calling send method from seperate class Pin
Omar El Fata13-Mar-10 6:49
Omar El Fata13-Mar-10 6:49 
QuestionRe: SOCKET_ERROR when calling send method from seperate class Pin
CPallini13-Mar-10 6:56
mveCPallini13-Mar-10 6:56 
AnswerRe: SOCKET_ERROR when calling send method from seperate class Pin
Omar El Fata13-Mar-10 7:08
Omar El Fata13-Mar-10 7:08 
GeneralRe: SOCKET_ERROR when calling send method from seperate class Pin
Omar El Fata13-Mar-10 7:45
Omar El Fata13-Mar-10 7:45 
AnswerRe: SOCKET_ERROR when calling send method from seperate class Pin
krmed13-Mar-10 10:26
krmed13-Mar-10 10:26 
GeneralRe: SOCKET_ERROR when calling send method from seperate class Pin
Omar El Fata13-Mar-10 11:01
Omar El Fata13-Mar-10 11:01 
QuestionWindow class, caption Pin
trioum13-Mar-10 4:26
trioum13-Mar-10 4:26 
AnswerRe: Window class, caption Pin
Eugen Podsypalnikov13-Mar-10 4:34
Eugen Podsypalnikov13-Mar-10 4:34 
GeneralRe: Window class, caption Pin
trioum13-Mar-10 4:43
trioum13-Mar-10 4:43 
GeneralRe: Window class, caption Pin
Eugen Podsypalnikov13-Mar-10 12:58
Eugen Podsypalnikov13-Mar-10 12:58 

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.