#DLL isnt executing "bedrock_server.exe" commands. even with std::cout or system() or printf()

15 messages · Page 1 of 1 (latest)

static nimbusBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

strange bloom
#

Question: why the DLL, what makes you think that the dll is best fit for the job?

#

Bet?

#

Yes but a separate executable can execute the command, actually for this the dll seems so out of the line, to call in the server function that saves, you will have to expose your dll to the API of the server.

#

As i already told you that you can't just pass in commands to running processes like that, they most usually have their own prompts.

#

You're getting it totally wrong. Things do not work at all like this.

#

You can't print the commands on console and expect them to automatically be passed into your server application.

#

You will need to open your server process in another application/server with its stdin piped and then pass the commands directly to the server.

#

Thats what im telling you, you need to reiterate over all the messages everyone has posted on this topic yet.

gray dust
#

Computers are dumb machines skillIssue

#

Your hands can click on the server window and typenin commands, std::cout cannot do the same.

vale jetty
#

You're abstracting away the actual logic.

#

As Sauron said, you can't just print strings to the standard console output and expect the application to automatically parse them.

quartz bramble
#

you are giving input onto the standard input with your hands, but the dll gives output to the standard output

civic umbra
#

You can use WinExec, ShellExecuteEx or CreateProcess functions...
In visual studio 2022, studio suggests to use CreateProcess. but it's not necessary to use certainly.
You can hide the cmd windows by using these functions.
I hope my answers will be help for you..