Evan Lehr
Evan Lehr

Reputation: 11

Constant expression required error with visa32.dll included in VB6 project references

I have downloaded and included the VISA library in my VB6 project through visa32.dll. When I try to compile the project, I get this error message:

Constant expression required

Compile error: Constant expression required

The VISA library is included in the project references here:

VISA library reference

Here is VI_NULL in visa32.dll:

VI_NULL

Why am I getting the error for VI_NULL but not VI_SUCCESS which is just above it?

Upvotes: 1

Views: 55

Answers (0)

Related Questions