Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VB6 - Can't Find Gpib-32.dll

I am receiving an error when I try to run my VB6 program:

"File not found: Gpib-32.dll"

This seems easy enough...but Gpib-32.dll is in the system
directory, where it should be. I'm using Vbib-32.bas and
Niglobal.bas in my project. Am I missing something?
Do I have to declare the .dll somewhere else?


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 1 of 4
(4,506 Views)
It sounds as if the operating system's PATH statement does not contain the
path information for the windows system directory, so that is why it cannot
find the GPIB-32.DLL. Open a DOS shell and type in the following at the prompt:

SET

If it scrolls past the PATH information, try typing in:

SET | MORE

If you are using Windows 95 or Windows 98, you should see something similar
to the following fragment of what might be contained in the PATH statement:

PATH=C:\WINDOWS\SYSTEM;

If you are using Windows NT or Windows 2000, you should see something like
so:

PATH=C:\WINNT\SYSTEM32;

If you do not see any PATH information for the Windows System directory,
you will need to add that information yourself. The easiest way to add PATH
information is to modify the AUTOEXEC.BAT fi
le. It should reside in the root
directory of your computer. If you do not see an AUTOEXEC.BAT file, you can
create on and save it in the root directory. In the AUTOEXEC.BAT file for
Windows 95 or Windows 98, you need to add/modify the PATH statement line
like so (note the example below is written for the default installation where
the boot drive is C: and the operating system is installed in the default
directory):

SET PATH=C:\WINDOWS\SYSTEM;

For Windows NT or Windows 2000, the default is:

SET PATH=C:\WINNT\SYSTEM32;

After saving the file, you will need to reboot the computer. This should
take care of your problem, if not, please let me know.

Liz

joe_columbus@my-deja.com wrote:
>I am receiving an error when I try to run my VB6 program:>>"File not found:
Gpib-32.dll">>This seems easy enough...but Gpib-32.dll is in the system>directory,
where it should be. I'm using Vbib-32.bas and>Niglobal.bas in my project.
Am I missing something?>Do I have to declare the .dll somewhere else?>
>>Sent
via Deja.com http://www.deja.com/>Before you buy.
0 Kudos
Message 2 of 4
(4,506 Views)
Thanks, Liz.

It turned out that I had the DOS/WIN3 GPIB drivers installed
instead of the WIN95/98 drivers...I just "assumed" that
the higher number was the latest...oops.
Thanks for your help!

Joe

In article <39ad0fe8@newsgroups.ni.com>,
"Liz" wrote:
>
> It sounds as if the operating system's PATH statement does not
contain the
> path information for the windows system directory, so that is why it
cannot
> find the GPIB-32.DLL. Open a DOS shell and type in the following at
the prompt:
>
> SET
>
> If it scrolls past the PATH information, try typing in:
>
> SET | MORE
>
> If you are using Windows 95 or Windows 98, you should see something
similar
> to the following fragment of what might be contained in the PATH
statement:
>
> PATH=C:\WINDOWS\SYSTEM;
>
> If you are using Windows NT or Windows 2000, you should see something
like
> so:
>
> PATH=C:\WINNT\SYSTEM32;
>
> If you do not see any PATH information for the Windows System
directory,
> you will need to add that information yourself. The easiest way to
add PATH
> information is to modify the AUTOEXEC.BAT file. It should reside in
the root
> directory of your computer. If you do not see an AUTOEXEC.BAT file,
you can
> create on and save it in the root directory. In the AUTOEXEC.BAT file
for
> Windows 95 or Windows 98, you need to add/modify the PATH statement
line
> like so (note the example below is written for the default
installation where
> the boot drive is C: and the operating system is installed in the
default
> directory):
>
> SET PATH=C:\WINDOWS\SYSTEM;
>
> For Windows NT or Windows 2000, the default is:
>
> SET PATH=C:\WINNT\SYSTEM32;
>
> After saving the file, you will need to reboot the computer. This
should
> take care of your problem, if not, please let me know.
>
> Liz
>
> joe_columbus@my-deja.com wrote:
> >I am receiving an error when I try to run my VB6 program:>>"File not
found:
> Gpib-32.dll">>This seems easy enough...but Gpib-32.dll is in the
system>directory,
> where it should be. I'm using Vbib-32.bas and>Niglobal.bas in my
project.
> Am I missing something?>Do I have to declare the .dll somewhere else?
>>>Sent
> via Deja.com http://www.deja.com/>Before you buy.
>


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 3 of 4
(4,506 Views)
To correct this you nee to call GPIB initial
0 Kudos
Message 4 of 4
(4,506 Views)