(Continued from previous page)


Enter the command

copy <compiler.exe> <TVI dir>

where <compiler.exe> is the full path to the executable created and <TVI dir> is the directory where you installed TVI.

Now add a new project to the workspace.

  1. Select File | New.
  2. Click on the Projects Tab
  3. Select a Win32 console application
  4. Select the checkbox to add the project to the current workspace.

Select the new project as the
active project (Project | Set Active Project).  Add the test Pascal files to the new project (Project | Add to Project | Files).  Select all the Pascal files you just added, right click on them and select Settings.  In the input box labeled Build Commands enter the command line required to run your compiler.  You can use the VC++ variable $(InputName) to reference the name of the file being processed without the path or extension, and the VC++ variable $(InputPath) to reference the fully qualified file name with full path and extension included.  For example, your build command might look something like

compile $(InputPath) $(InputName).tvi

assuming your compiler takes the file to be compiled as the first parameter and the name of the output file as the second parameter.  In the input box labeled Output File(s) enter the name of the files that will be created by your compiler.  This will most likely be:

$(InputName).tvi

Set the active project to your compiler again and build an executable.  If all went well you will see that the last message in the message window is that 1 file has been copied.  Now select the project you just created above as the active project and try compiling one of the test files.  VC++ should now try to build the file using your compiler!  Cool.


Back to top

To contact us:

© Copyright 1999 Vassar College
Poughkeepsie, New York

Web pages  by
Keith Suderman Consulting