連結已複製
To use SciGraph in your own programs, you must:
1. Ensure that the SciGraph library, "scigraph.lib", is available on the path searched by the linker for libraries. The linker uses the LIB environment variable to specify the library paths (or you can use Microsoft Developer Studio, which has its own setting).
2. Ensure that the SciGraph module, "scigraph.mod", is available on the path searched by the compiler for module files. This compiler uses the INCLUDE environment variable to specify the include paths.
3. Insert the statement "USE SCIGRAPH" in all modules and program units which use SciGraph functions.
4. Call SciGraph functions (as described in this scigraph.txt file)
hth
Les
I have just compiled and run the SciGraph demo (Win32 x86)and it works ok.
Are you running the demo or your own program? If it is your program then it would help if you posted the code of the routine that does not compile.
In SGADMIN GetGraphDefaults has a dummy argument "graph"defined as :
RECORD /GraphSettings/ graph
and linegraph is declared as :
"The application type must be "QuickWin"," from docs
Therein lies the problem. Do you suppose it would work in a WIN32 environment? QuickWin really sucks.
I noticed that "Cyrillique" (in this thread) is using SciGraph in a WIN32 environment. This is contrary to the documentation. Maybe this is why he is having trouble. Or; maybe I should try it. SciGraph is a neat, simple, quick and dirty graph maker. It would be great if one could make it run in WIN32.
DT