NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
rarjr
Posts: 2
0 Kudos

When loading sample V project I get "Could not create reference: C:\windows\system32\visa32.dll"

When loading sample VB6 project I get "Could not create reference: C:\windows\system32\visa32.dll".  I checked and the file is there. VB Project is found in C:\Users\Public\Documents\National Instruments\NI-VISA\Examples\VB6

Member
Shawn_S.
Posts: 148
0 Kudos

Re: When loading sample V project I get "Could not create reference: C:\windows\system32\visa32.dll"

Hello Rarjr,

 

I found a CAR (# 25P9IDTD) with a similar issue.  The CAR was resolved by fixing the references in the .vbp files.  You may want to try opening the project, removing the references and then recreating them.

 

Try that land let me know how it goes.

 

Would you please tell me which operating system you're machine is using and which version of Measurement Studio are you using with VB6?

Regards,

Shawn S. | NIC
Instrument Driver/IVI PSE
National Instruments
Member
Shawn_S.
Posts: 148
0 Kudos

Re: When loading sample V project I get "Could not create reference: C:\windows\system32\visa32.dll"

[ Edited ]

Hello Rarjr,

 

The examples are using hardcoded paths instead of a generic path for DLLs. If you hand edit (in notepad) the .vbp (VB project) file, you can remove the explicit path and then the system can find the DLL since it's in the normal search path.

 

An example of the line in the .vbp that needs to be changed is:

Current .vpp: Reference=*\G{39C32428-25DB-11D0-85B4-0020AF33DEAE}#0.0#0#D:\WIN98\SYSTEM\Visa32.dll#VISA Library Proposed .vbp: Reference=*\G{39C32428-25DB-11D0-85B4-0020AF33DEAE}#0.0#0#Visa32.dll#VISA Library.

 

Again, make these edits in a text editor as Visual Basic does not provide a clear way to manage these references from within its IDE.

Regards,

Shawn S. | NIC
Instrument Driver/IVI PSE
National Instruments
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page