Huazhong University of Science and Technology
Visual Sound Instrument (Version 3.2)
User Extension
a). CGI Extension
Execute a user designed CGI program. You can design a CGI program to extend the functions of VSI32. For example, read a data file of your self. See "Design Method of CGI Program by Visual C++' for refrence. Below is a sample CGI program of Visual C++. It is very simple, not hard then a beginer level C++ program.

> #include "stdafx.h"
> #include "writedata.h"
> #include "CGILib.h"

> CWinApp theApp;
> using namespace std;

> int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
> {HANDLE id;
> short wave1[2048],wave2[2048];
> id=GetProcessHandle();
> if (id==0) {AfxMessageBox("Error !");return 0;}
> for (int i=0;i<2048;i++)
> {wave1[i]=2*i;
> wave2[i]=-2*i;
> }
> writeCH1(id,wave1,2048);
> writeCH2(id,wave2,2048);
> WriteLen(id,2048);
> WriteFS(id,5120);
> PostExit();
> return 0;
> }

b).Script Extension
Execute a user designed Script program. You can design a Script program to extend the functions of VSI32. For example, read a data file of your self. See "VSI32 VBScript Design' for refrence. This technique is stolen from IIS of Microsoft, so it is much like ASP of IIS.
..
c).Script Editor
Start a internal script editor. You can use any tect viewer as script editor.
.
[Return]
.

2004.1.10