Sample Microsoft Visual C++ Projects Illustrating How to Call the NAG C LibraryThis web page contains links to several zip files, each containing a Microsoft Visual Studio (Visual C++) project showing how to call a different NAG C Library function.The projects were created using Microsoft Visual C++ version 7 from within Visual Studio .NET 2003, and have also been tested with Visual Studio 2005 (VC++ 8); they may not work with other versions of Visual C++. To run these projects under Visual Studio 2005, use the Visual Studio conversion wizard to convert the project. This will update the .sln and .vcproj files; the C/C++ code itself should remain the same.
The projects assume that the NAG C Library and associated material
are installed in the folder
Note that these example projects contain both C and C++ source files (the C files containing slightly modified versions of the example programs from the examples\source folder). Because the C function is called from C++ code, the C function must be declared as extern "C" in the C++ code. For an example, see the files d01sjce.c and d01sjcDlg.cpp in the d01sjc project folder.
Remember also that to be able to run the program after you have
compiled it, the NAG C Library DLL will need to appear somewhere in
your current path. For example, if the DLLs are in
C:\Program Files\NAG\CL08\cldll084zl\bin;C:\Program Files\NAG\CL08\ cldll084zl\MKL_ia32_8.0\bin;<rest of path> |
© Numerical Algorithms Group
Visit NAG on the web at:
www.nag.co.uk (Europe and ROW)
www.nag.com (North America)
www.nag-j.co.jp (Japan)
http://www.nag.co.uk/numeric/CL/classocinfo/VisualC++/README.asp