locked
Linking to an External libarry using VS 2008 RRS feed

  • Question

  • Hi,

    This is my first time using VS 2008 to write a C++ program but facing a problem that i need you guys help. The program i am facing with is writing a program that required me to call an external library calls "visa32.lib" and the instructions they gave me is in the Microsoft Visual C++ Version 6.0 Development Environment. Is there any ways i can achieve the same result using MS 2008. Below is the link to the instructions.


    This is the link to the Microsoft Visual C++ V6.0 instructions page 14
    http://cp.literature.agilent.com/litweb/pdf/5989-6135EN.pdf



    Thank you very much
    B

    • Edited by Designer6 Wednesday, September 3, 2008 11:25 PM modify english
    Wednesday, September 3, 2008 11:23 PM

Answers

  • Right-click on the project, Properties, Configuration Properties, Linker, Input, Additional Dependencies
    • Proposed as answer by Neil Tippett Thursday, September 4, 2008 11:13 AM
    • Marked as answer by Designer6 Thursday, September 4, 2008 6:53 PM
    Wednesday, September 3, 2008 11:53 PM
  • Why don't you explorer the Configuration Settings yourself? It should be evident pretty quickly where to find these settings. You might find a lot of other settings of interest to yourself.

    For include directories:

    Configuration Properties, C/C++, General, Additional Include Directories

    For Library directories:

    Configuration Properties, Linker, Additional Library Directories
    • Marked as answer by Designer6 Thursday, September 4, 2008 10:55 PM
    Thursday, September 4, 2008 5:43 PM

All replies

  • Right-click on the project, Properties, Configuration Properties, Linker, Input, Additional Dependencies
    • Proposed as answer by Neil Tippett Thursday, September 4, 2008 11:13 AM
    • Marked as answer by Designer6 Thursday, September 4, 2008 6:53 PM
    Wednesday, September 3, 2008 11:53 PM
  • Brian,

    Thanks. Another thing, could you show me on how to complete the rest of the instructions in MS 2008


    5. You may want to add the include files and library files search paths. They are set as follows:
    •Select Tools > Options from the menu.
    •Click the Directories tab to set the include file path.
    •Select Include Files from the Show Directories For list box.
    •Click at the bottom of the list box and type:
    C:\Program Files\VISA\winnt\include
    (This assumes that you used the default installation location for VISA.)
    •Select Library Files from the Show Directories For list box.
    •Click at the bottom of the list box and type:
    C:\Program Files\VISA\winnt\lib\msc
    (This assumes that you used the default installation location for VISA.)
    6. Add or create your C or C++ source files. For example, to build the sample described below, select Project > Add to Project > Files... and type or browse to C:\Program Files\Agilent\IO Libraries Suite\ ProgrammingSamples\C\VISA\idn.c.
    7. Click Build > Rebuild All to build the VISA program.

    • Edited by Designer6 Thursday, September 4, 2008 3:14 PM add text
    Thursday, September 4, 2008 3:03 PM
  • Why don't you explorer the Configuration Settings yourself? It should be evident pretty quickly where to find these settings. You might find a lot of other settings of interest to yourself.

    For include directories:

    Configuration Properties, C/C++, General, Additional Include Directories

    For Library directories:

    Configuration Properties, Linker, Additional Library Directories
    • Marked as answer by Designer6 Thursday, September 4, 2008 10:55 PM
    Thursday, September 4, 2008 5:43 PM
  • Brian,

    Thanks for the help. As i mentioned in my first post. Today is my second day of using MVS 2008 and i follow the MV C++ 6 to closely.

    Regards,
    B
    Thursday, September 4, 2008 6:53 PM