environment handles

cBarry263

Active member
Joined
Oct 29, 2005
Messages
42
Location
Maryland
Programming Experience
Beginner
Could someone please explain to me what "environment handles" and "connection handles" are? I have never heard these terms yet they are showing up everywhere I this code I am working on.
 
It is a DB connection handle. The application connects to an SQL database, there are tons of API's included, for example one of them is SQLAllocEnv. They all seem to take handles as arguments or return handles and I have no idea what it means by a handle.
 
Oops. Yes if by libs you mean something like
Private
Declare Function SQLAllocEnv Lib "db2cli.dll" (ByRef phenv As Integer) As Short
 
If I had to take a stab at it, The class/module/namespace used to hook the libs is probably the handle.

Module adc1132
Declare Function adc11_get_driver_version Lib "ADC1132.dll" () As Integer
End Module
 
Back
Top