为SQLDescribeCol PInvoke

有人可以给我以下代码的PInvoke等效吗?

Can any one give me the PInvoke equivalent for the following code

Declare Function SQLDescribeCol Lib "odbc32.dll" (ByVal lStmt As Long, ByVal colnum As Integer, _
            ByVal colname As String, ByVal Buflen As Integer, colnamelen As Integer, dtype As Integer, _
            dl As Long, ds As Integer, n As Integer) As Integer



我在VB.Net中使用了相同的语法,但是它引发了拒绝访问的异常.

预先感谢



I used the same syntax in VB.Net, but it is throwing an access denied exception.

Thanks in advance



 1 条回答