|T O P I C R E V I E W
||Posted - 17 Jun 2008 : 15:21:05
I am building an application with Visual C++ studio 6.0 using MFC. I get
GRAPHVW.OBJ : error LNK2001: unresolved external symbol _WGCreateGraph@36
GRAPHVW.OBJ : error LNK2001: unresolved external symbol _WGStart@0
PAGE.OBJ : error LNK2001: unresolved external symbol _WGCreatePage@56
Debug/Gse.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.
I am linking in with mwct32f.lib. Also if I link with WRT32FR3.LIB, I get the following:
..\Vendor_lib\qcw32\WRT32FR3.LIB : fatal error LNK1136: invalid or corrupt file
Error executing link.exe.
Which is the appropriate library to link with?? product that I have is
|1 L A T E S T R E P L I E S (Newest First)
||Posted - 17 Jun 2008 : 15:55:07
First, are you specifically trying to use "float" as your standard numeric type, rather than "double", which is how all of our example programs are setup. That is implied with your reference to mwct32f.lib.
Second, you seem to be trying to use a product you may not own. A check of your order shows that you are associated with a WIN-BMC-102 order, which is the Charting Tools for Windows. The WRT32FR3.LIB you reference is from our Real-Time Graphics Tools for Windows, a different product. While the GCL for MFC is a wrapper for both our Charting Tools, and Real-Time Graphics Tools, you must actually own a copy of the Real-Time Graphics Tools before you can use those features.
Third, you seem to be trying to include files we do not tell you to include in the project when using our GCL for MFC software. You should study the tutorial in WINMFC210.pdf documenation file. It sounds like you are trying to base your project on the Charting Tools manual (WINBMC100.pdf), which is for C project files, not MFC C++ projects. Our GCL for MFC example programs do not reference the mwct32d.lib, or mwct32f.lib. Instead they reference ct32dd, ct32d, ct32f or ct32fd.
Fourth, you should be basing your program on the Charting Tools (some are for the Real-Time Graphics Tools) example programs in the QCW32\mfclib\examples folder. Start with SDIDemo1. It seems you are looking at the examples in the QCW32\exampl_c folder, which are the ones that reference mwct32d.lib, ( mwct32f.lib if you use the float numeric type).
Fifth, unless you have some overriding reason to ignore this advise, you should start with the standard "double" numeric type (the default), and until you can make a project that produces a graph, not worry about converting the project to the "float" numeric type.
Sixth, you should always state whether or not you are able to run our example programs, so we have someplace to start.