Click here to Skip to main content
15,920,614 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionVS2019 - missing dialog editor? Pin
charlieg23-Jan-22 11:15
charlieg23-Jan-22 11:15 
SuggestionRe: VS2019 - missing dialog editor? Pin
Graham Breach23-Jan-22 21:30
Graham Breach23-Jan-22 21:30 
GeneralRe: VS2019 - missing dialog editor? Pin
charlieg24-Jan-22 2:31
charlieg24-Jan-22 2:31 
AnswerRe: VS2019 - missing dialog editor? Pin
Victor Nijegorodov23-Jan-22 21:33
Victor Nijegorodov23-Jan-22 21:33 
GeneralRe: VS2019 - missing dialog editor? Pin
charlieg24-Jan-22 2:32
charlieg24-Jan-22 2:32 
AnswerRe: VS2019 - missing dialog editor? Pin
charlieg25-Jan-22 7:34
charlieg25-Jan-22 7:34 
QuestionMessage Closed Pin
21-Jan-22 18:09
Member 1496877121-Jan-22 18:09 
AnswerRe: More about "system" call - sort of repost Pin
k505421-Jan-22 18:38
mvek505421-Jan-22 18:38 
Didn't we already cover this? How do I pass command to system calll as variable? In particular see popen(3) - Linux manual page I still think that QProcess is the way to go if you're in QT land. You seem to be having difficulties getting that working - my advice would be to write as small a program as you can that uses Qprocess to do something like a directory listing, and get that working, then integrate what you learned from that to get it working in your main project.
If you insist, though, you should be able to redirect output, just like you would from the terminal command line e.g.
C++
const char *command = "rfkill list > textEdit";
system(command)
// or even just
system("rfkill list > textEdit");
In this instance, I don't see the value in constructing a QString just to then re-format it as a C string for the system command, and then calling the QString destructor.
Keep Calm and Carry On

GeneralMessage Closed Pin
22-Jan-22 4:40
Member 1496877122-Jan-22 4:40 
GeneralRe: More about "system" call - sort of repost Pin
k505422-Jan-22 5:19
mvek505422-Jan-22 5:19 
GeneralRe: More about "system" call - sort of repost Pin
Richard MacCutchan22-Jan-22 6:28
mveRichard MacCutchan22-Jan-22 6:28 
QuestionMessage Closed Pin
21-Jan-22 6:37
Member 1496877121-Jan-22 6:37 
AnswerRe: How to read "compiier output " Pin
k505421-Jan-22 7:15
mvek505421-Jan-22 7:15 
GeneralMessage Closed Pin
21-Jan-22 8:25
Member 1496877121-Jan-22 8:25 
GeneralRe: How to read "compiier output " Pin
k505421-Jan-22 11:36
mvek505421-Jan-22 11:36 
QuestionMessage Closed Pin
20-Jan-22 14:58
Member 1496877120-Jan-22 14:58 
AnswerRe: Another long shot... Pin
k505420-Jan-22 16:40
mvek505420-Jan-22 16:40 
QuestionMessage Closed Pin
18-Jan-22 11:04
Member 1496877118-Jan-22 11:04 
AnswerRe: Passing system function to QProcess - need syntax help Pin
k505418-Jan-22 11:37
mvek505418-Jan-22 11:37 
Questionwindow.chrome.webview.postmessage from child html to main c++ app (webView2) Pin
Member 1543991717-Jan-22 16:20
Member 1543991717-Jan-22 16:20 
QuestionDDX_Text embedding nulls on UpdateData(TRUE) Pin
ForNow13-Jan-22 16:50
ForNow13-Jan-22 16:50 
AnswerRe: DDX_Text embedding nulls on UpdateData(TRUE) Pin
Peter_in_278013-Jan-22 19:00
professionalPeter_in_278013-Jan-22 19:00 
GeneralRe: DDX_Text embedding nulls on UpdateData(TRUE) Pin
ForNow13-Jan-22 20:10
ForNow13-Jan-22 20:10 
GeneralRe: DDX_Text embedding nulls on UpdateData(TRUE) Pin
Richard MacCutchan13-Jan-22 20:54
mveRichard MacCutchan13-Jan-22 20:54 
GeneralRe: DDX_Text embedding nulls on UpdateData(TRUE) Pin
ForNow14-Jan-22 2:11
ForNow14-Jan-22 2:11 

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.