To develop an NI-RFSG application with Microsoft Visual C++ 6.0, follow these general steps:
  1. Open an existing or new Visual C/C++ project to manage your application code.
  2. Create source code files of type .c (C) or .cpp (C++).
  3. Add the source code files to the project.
  4. Add the following code in the source code files:
    #include "niRFSG.h"
  5. Add the NI-RFSG include and library files to the project.
    Note In the following steps, IVIROOTDIR32 and VXIPNPPATH are aliases to specific National Instruments file folder locations. Refer to the NI-RFSG Readme for more information about installed file locations.
    1. Select Project»Settings»C/C++»Preprocessor»Additional include directories, and add the paths to the following files, separated by a semicolon:
      • IVIROOTDIR32\Include\niRFSG.h
      • VXIPNPPATH\WinNT\Visa\include\visa.h
    2. Select Object/Library Modules » Link » General » Object/Library Modules and add niRFSG.lib.
    3. Select Project » Link » Input » Additional library path and add the following path:
      • 32-bit systems: IVIROOTDIR32\Lib\msc\niRFSG.lib
      • 64-bit systems: IVIROOTDIR32\Lib x64\msc\niRFSG.lib
  6. Build your application using the appropriate programming flow steps.