Click to See Complete Forum and Search --> : ODBC sqlallocenv problem


Gpooh
April 14th, 2003, 02:56 AM
Code sample:(with vb.net )
------------------------
Public Declare Function SQLAllocEnv Lib "odbc32.dll" (ByVal phenv&) As Integer
------------------------

dim rc as integer
dim lenv as long
rc=sqlallocenv(lenv&)
----------------------------------------------------
----------Now rc=528351231 and lenv can not be set
-----------------------------------------------------
I find that this function can not work!
Please give me some advice!
:o