PCから御社製 PCMCIA-GPIBカード(777438-02)を介してHP製 可変アッテネーターを制御するソフトを開発しています。
開発環境はVisual Studio .NET VC++です。
以下のようなエラーメッセージを解決できず、困っています。
解決策を教えて頂きたく、よろしくお願いします。
GPIB_TEST error LNK2001: 外部シンボル ""int __stdcall ibonl(int,int)" (
?ibonl@@$$J18YGHHH@Z)" は未解決です。
GPIB_TEST error LNK2001: 外部シンボル ""int __stdcall ibrd(int,void *,long)" (
?ibrd@@$$J212YGHHPAXJ@Z)" は未解決です。
GPIB_TEST error LNK2001: 外部シンボル ""int __stdcall ibwrt(int,void *,long)" (
?ibwrt@@$$J212YGHHPAXJ@Z)" は未解決です。
GPIB_TEST error LNK2001: 外部シンボル ""int __stdcall ibdev(int,int,int,int,int,int)" (
?ibdev@@$$J224YGHHHHHHH@Z)" は未解決です。
GPIB_TEST fatal error LNK1120: 外部参照 4 が未解決です。
ソースは以下のとおりです。
#include "stdafx.h"
#include <windows.h>
#include "ni488.h"
#include <stdio.h>
#using <mscorlib.dll>
using namespace System;
/*****************************************************************************
* Refer to the language interface documentation for details on
* which header and .obj files to include in your project.
*****************************************************************************/
int Device = 0; /* Device unit descriptor */
int BoardIndex = 0; /* Interface Index (GPIB0=0,GPIB1=1,etc.) */
int _tmain()
{
int PrimaryAddress = 2; /* Primary address of the device */
int SecondaryAddress = 0; /* Secondary address of the device */
char Buffer[101]; /* Read buffer */
/*****************************************************************************
* Initialization - Done only once at the beginning of your application.
*****************************************************************************/
Device = ibdev( /* Create a unit descriptor handle */
BoardIndex, /* Board Index (GPIB0 = 0, GPIB1 = 1, ...) */
PrimaryAddress, /* Device primary address */
SecondaryAddress, /* Device secondary address */
T10s, /* Timeout setting (T10s = 10 seconds) */
1, /* Assert EOI line at end of write */
0); /* EOS termination mode */
/*****************************************************************************
* Main Application Body - Write the majority of your GPIB code here.
*****************************************************************************/
ibwrt(Device, "*IDN?", 5); /* Send the identification query command */
ibrd(Device, Buffer, 100); /* Read up to 100 bytes from the device */
/*****************************************************************************
* Uninitialization - Done only once at the end of your application.
*****************************************************************************/
ibonl(Device, 0); /* Take the device offline */
}