Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Visual Studio Resource Editor Pin
jschell16-Feb-24 7:23
jschell16-Feb-24 7:23 
GeneralRe: Visual Studio Resource Editor Pin
Mircea Neacsu16-Feb-24 7:30
Mircea Neacsu16-Feb-24 7:30 
Questionhow to get "native window" ? Pin
Salvatore Terress11-Feb-24 8:26
Salvatore Terress11-Feb-24 8:26 
AnswerRe: how to get "native window" ? Pin
CPallini11-Feb-24 20:14
mveCPallini11-Feb-24 20:14 
GeneralRe: how to get "native window" ? Pin
Richard MacCutchan12-Feb-24 5:13
mveRichard MacCutchan12-Feb-24 5:13 
GeneralRe: how to get "native window" ? Pin
k505412-Feb-24 3:44
mvek505412-Feb-24 3:44 
GeneralRe: how to get "native window" ? Pin
k505412-Feb-24 7:14
mvek505412-Feb-24 7:14 
AnswerRe: how to get "native window" ? Pin
jschell13-Feb-24 4:45
jschell13-Feb-24 4:45 
Salvatore Terress wrote:
Apparently there are at least two ways to accomplish that.


All languages, C++ or anything else, for an external app has the following communication paths.
- Start Up - Command line parameters.
- Running. Exit code. Which is an int value and nothing else.
- Running. Stdio: stderr, stdin, stdout.

Using the above I have implemented the following in the past
- One computer connecting to multiple hardware devices.
- Error output collected.
- Logging collected.
- Commands controlling each device.
- Binary data sent to and from each device.

An application might provide another API. But that has nothing to do with running it from the first application. And for most standard 'OS Command line' commands it will not apply. As a specific example you can start and stop IIS using command line commands. But you are definitely not going to be accessing web sites from it using exactly the same commands (if at all using a OS command.)

Using a command line app and controlling it requires that one understand exactly what the app does. And that has nothing to do with the controller code from the calling app.

Using a OS shell is going to make the above MUCH harder. That is because the shell must then redirect all output from any commands it runs back along the stdio path (in and out.)

Getting the shell to do that has nothing to do with the calling application. One will need to figure that out by looking for command line parameter to the shell itself. Although I suspect that that it is possible to do this, at the very least I know it is difficult.
GeneralRe: how to get "native window" ? Pin
Richard MacCutchan14-Feb-24 4:23
mveRichard MacCutchan14-Feb-24 4:23 
GeneralRe: how to get "native window" ? Pin
Dave Kreskowiak14-Feb-24 4:37
mveDave Kreskowiak14-Feb-24 4:37 
AnswerRe: How to implement sudo -S and -ps options Pin
k505414-Feb-24 12:57
mvek505414-Feb-24 12:57 
GeneralRe: How to implement sudo -S and -ps options Pin
Richard MacCutchan15-Feb-24 21:02
mveRichard MacCutchan15-Feb-24 21:02 
GeneralRe: How to implement sudo -S and -ps options Pin
jschell15-Feb-24 11:41
jschell15-Feb-24 11:41 
AnswerRe: How to implement sudo -S and -ps options Pin
Richard MacCutchan14-Feb-24 21:46
mveRichard MacCutchan14-Feb-24 21:46 
Questionpurpose of parameter value of -1 ? Pin
Salvatore Terress10-Feb-24 5:14
Salvatore Terress10-Feb-24 5:14 
AnswerRe: purpose of parameter value of -1 ? Pin
k505410-Feb-24 5:21
mvek505410-Feb-24 5:21 
AnswerRe: purpose of parameter value of -1 ? PinPopular
Mircea Neacsu10-Feb-24 5:24
Mircea Neacsu10-Feb-24 5:24 
GeneralRe: purpose of parameter value of -1 ? Pin
Salvatore Terress10-Feb-24 6:14
Salvatore Terress10-Feb-24 6:14 
GeneralRe: purpose of parameter value of -1 ? Pin
Richard MacCutchan10-Feb-24 21:23
mveRichard MacCutchan10-Feb-24 21:23 
AnswerRe: purpose of parameter value of -1 ? Pin
CPallini10-Feb-24 22:32
mveCPallini10-Feb-24 22:32 
GeneralRe: purpose of parameter value of -1 ? Pin
Richard MacCutchan11-Feb-24 2:19
mveRichard MacCutchan11-Feb-24 2:19 
GeneralRe: purpose of parameter value of -1 ? Pin
CPallini11-Feb-24 4:12
mveCPallini11-Feb-24 4:12 
QuestionUsing /bin/sh "partially " works Pin
Salvatore Terress9-Feb-24 6:10
Salvatore Terress9-Feb-24 6:10 
AnswerRe: Using /bin/sh "partially " works Pin
Mircea Neacsu9-Feb-24 6:47
Mircea Neacsu9-Feb-24 6:47 
AnswerRe: Using /bin/sh "partially " works Pin
k50549-Feb-24 6:59
mvek50549-Feb-24 6:59 

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.