Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Late binding to niDMM_32.dll

Is it possible to use late binding to reference the functions in niDMM_32.dll? I have a VB6 application that operates 50+ testers. These testers do not use PXI DMM hardware for data acquisition. However, the newest testers do use PXI DMM hardware. I do not want to create a new application for testers with NI DMM hardware. Nor do want to install NI drivers on every tester currently in operation. Is it possible to use late binding when referencing niDMM_32.dll? If it is possible, I can then shove the calls to this dll into a class module and reference the file only when I need to.

Thanks for suggestions.
0 Kudos
Message 1 of 2
(5,997 Views)
I believe Declare statements in VB 6 are late bound (so says this KB), so the DLL won't be loaded unless you actaully call the function. And if you get any exceptions when calling those functions, that might indicate that the DLL is not present. I dont know if VB 6.0 lets you resume with DLL not found errors. But it might be something you could test out.
Hope this helps
Bilal Durrani
NI
Message 2 of 2
(5,977 Views)