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?