Procedures for using GraphiC with the Microsoft Visual C++ Developer Studio 97

(File names are for the NT version of GraphiC)

1) Create the GraphiC library

In the "File" Menu, select "New." In the project tab select "Win32 static library." Use a project name "lib" and put it in the main graphic directory, e.g., e:\gpcnt. Select the button for create a new workspace, and then click the OK button.

In the "Project, Add to project, Files" Menu select all the C files in the graphic source directory with the exception of  PLAY.C. You can use two shift-clicks to select all the files, and then a ctrl-click to deseelect PLAY.C. All the files should appear in the Workspace window under the files tab.

Under "Project, Settings," in the Library tab, give the library the name gpwin.lib.  I created it in lib\gpwin.lib by changing the output file name settings. If you wish, you can make different versions for debug and production.

In the Project Settings dialog box, add the GraphiC include directory. Click Settings on the Project menu. Then click the C/C++ tab, and click Preprocessor in the Category box. Put the path to your GraphiC include directory in the "Additional include directories" window.

Select "Build, Compile" and the library will be created.

2) Create your project workspace

In the "File" Menu, select "New." In the project tab select "Win32 Application," and fill in the project name and location fields.

In the project workspace, select "Project, Add to project, Files," and add your C GraphiC program plus GRAPHICW.C, GRAPHICW.DEF and GRAPHICW.RC from the graphic \PRJ directory. Also add the gpwin library you created in step 1, and the GPCWDRVN.LIB file from the graphic \LIB directory. As shown below, you must also add the GraphiC include path to both the C/C++ and the Resource tabs.

(Here, the non-GraphiC files in my project were FltData.h, FltDefs.h, functions.h, ReadData.c, and util.c.)

Be sure to use the same compile options that you used for your library.

Finally, you must add the Miscrosoft winmm.lib library in the link step.


Select "Project, Build" and the executable will be created.