readme.htm

来自「Visual Prolog 7.1的一些学习资料,希望对您有用」· HTM 代码 · 共 30 行

HTM
30
字号
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
</head>

<body>

<h1>Invocation an External Process</h1>
<p>The example contains the application to invoke an external process and
interact with the standard output and standard input of it.</p>
<p>Please notice that it is necessary to invoke:</p>
<pre>Output:flush()</pre>
<p>to send the output.</p>
<p>Please be attentive when using both streams (standard output and standard
input) of an external process. The problem is that you can very easily block the execution. If the parent
process tries to read from the child process and the child process is also
trying to read from standard input, then both processes will simply wait (for
the other one to produce an output).</p>
<h2>Build and Run</h2>
<p>Load the project <a href="callProcess.prj6"><i>callProcess.prj6</i></a> into the IDE and press Ctrl+F5 (Execute), or build the project,
and then run  <a href="Exe/callProcess.exe"><i>Exe/callProcess.exe</i></a>.</p>
<p>It is a good idea to run it from a command prompt (otherwise the window
closes very rapidly).</p>

</body>

</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?