conversion error

  • Thread starter Thread starter JFB
  • Start date Start date
J

JFB

Private Const SQL_OV_ODBC3 As Integer = 3

If SQL_SUCCESS = SQLSetEnvAttr(henv, SQL_ATTR_ODBC_VERSION,
CType(SQL_OV_ODBC3, IntPtr), 0) Then

Hi Geeks,
I have and error saying that SQL_OV_ODBC3 cannot convert to IntPtr...
How can I fix this??
Tks
JFB
 
You could try using the IntPtr constructor:

New IntPtr(SQL_OV_ODBC3)

instead of the CType
 
Back
Top