为SQLDescribeCol PInvoke [英] PInvoke for SQLDescribeCol
本文介绍了为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
推荐答案
以其他方式尝试:本文从目标创建签名. http://blogs.msdn.com/b/vbteam/存档/2008/03/14/making-pinvoke-easy.aspx [
Try it the other way: this article creates signatures from the target. http://blogs.msdn.com/b/vbteam/archive/2008/03/14/making-pinvoke-easy.aspx[^]
这篇关于为SQLDescribeCol PInvoke的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文