It is quite easy to call a command-line program from a SQLphone flowchart.
It is done using a DLL box, to call the system() function in a Windows system DLL (MSVCRT.DLL).
The screen-shot below shows the DLL box setup.
- Add a memory to the flowchart, we suggest you call it command.
- The command memory must contain the DOS command-line needed to
run the external application. This can be a fixed memory value,
or built using a SQL statement.
- When adding the DLL parameter, the type is char*.
Also, allocate enough storage for the command line (eg. 100 characters).
Note, that when the external program is called, a DOS window will quickly appear, then disappear.
This will look strange, but it works OK.
The location of the MSVCRT.DLL file may differ, for different versions of Windows.
Use the Browse button to find it.
previous topic | tutorial menu