11-25-2011 10:31 PM
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
11-28-2011 04:22 PM
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?
11-29-2011 01:02 PM - edited 11-29-2011 01:04 PM
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.