LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to use the SQL toolkit within a labview DLL when the DLL is called from CVI?

My labview program using the SQL toolkit works fine as an executable but when I make it into a DLL, I get the error "Labview.lib not called from a labview process." I do NOT get the error if I call the DLL from a labview library node. I only get it if I call from CVI or Visual Basic. NI support tells me that this error occurs if the CIN's were compiled and linked to the old LABVIEW.LIB. The SQL toolkit has CINs so I suspect that they are old (the dates on some of the files go back to 1999) and linked to the wrong Labview.lib. Is this right? And if so, what can be done? Has anyone ever made a labview dll that uses the SQL toolkit and called from CVI?
0 Kudos
Message 1 of 3
(2,701 Views)
Are you trying to call the DLL in CVI on the same machine that has SQL toolkit for LabVIEW installed? If not then try taking some of the files to the other machine where you are calling the DLL from. Here is the list
http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/b814be005f9da9258625658700550c75?OpenDocument

A Rafiq
0 Kudos
Message 2 of 3
(2,701 Views)
I have verified that all of the dll's are the same. It doesn't make any difference what machine the dll containing the SQL vi's runs on. It never works when called from CVI.
0 Kudos
Message 3 of 3
(2,701 Views)