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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top