>The main thing beeing how to read and write to standard input/output.
You have to use the CreateFile, ReadFile and WriteFile Windows APIs to do this.
Not recommended though, because CGI programs are started on each hit to the CGI link. This means the VFP runtime fires up on every hit which is very slow and very resource intensive.