Lazarus Tprocess中的输入和输出管
我想通过Lazarus GUI应用程序制作终端。但是我遇到了麻烦。我希望有人可以帮助我。
Question1 :中文和其他特殊炭不能正常显示,我想知道如何解决此问题。 (code)线程类别和“ run”按钮在单击事件上
Question2 :我想知道如何将某些命令输入到控制台中。我试图启动Windows CMD,并使用“ Winver”命令。但是,当我单击按钮时,什么也不会发生。
I would like to make a terminal with a Lazarus GUI application. But I'm in trouble. And I hope someone can help me, please.
Question1: The Chinese and other special chars cannot display normally, I would like to know how to fix this problem.
(code)Class of the thread and "run" button on click event
Question2: I want to know how to input some command into the console. I tried to start a Windows cmd, and use "winver" command. But when I click the button, nothing happened.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Winver不是控制台,而是GUI计划。要将输出输出的程序运行到备忘录中,请使用以下代码,该代码使用cmd.exe“ ver”命令检索版本。您也可以尝试将此模板用于第一个问题。
我不知道Minecraft服务器,许多外部程序可能会对控制台做奇怪的事情。但是,与之测试的程序的简单组合在这里 http://www.stack。 nl/〜marcov/files/processmemodemo.zip
Winver is not console but a GUI program. To run a program with output into memo, use the following code, which retrieves version using the cmd.exe "ver" command. You can try to use this template for the first question too.
I don't know minecraft server, and many external programs might do weird things to the console. But a simple combination of programs to test with is here http://www.stack.nl/~marcov/files/processmemodemo.zip