|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
conversion errorPrivate 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 "Chris Dunaway" <dunaw***@gmail.com> schrieb: This should work.> You could try using the IntPtr constructor: > > New IntPtr(SQL_OV_ODBC3) > > instead of the CType -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> Yes, tks for the help..
JFB Show quoteHide quote "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message news:eJuVmwlNGHA.1216@TK2MSFTNGP14.phx.gbl... > "Chris Dunaway" <dunaw***@gmail.com> schrieb: >> You could try using the IntPtr constructor: >> >> New IntPtr(SQL_OV_ODBC3) >> >> instead of the CType > > This should work. > > -- > M S Herfried K. Wagner > M V P <URL:http://dotnet.mvps.org/> > V B <URL:http://classicvb.org/petition/>
Startup a winform hidden
Eval function vb.net Best data structure? Create object through classname How to change "database and User" into CR9 Webservice MyApplication has encountered a problem... when not Administrator! What is the difference between VB.NET and ASP.NET?? Get IP Address Validating event Access object through String ? |
|||||||||||||||||||||||