|
|

楼主 |
发表于 2008-2-19 22:45:00
|
显示全部楼层
Re: 使用vb写一个简单的dll调用实例问题(翻译vc++ as VB)
查阅联机,找到约定,可这是class,有没有直接function的指点?
另外,再虚心请教题外2个问题
怎么在vb的ide中使用类似vc++的PrintDebug,assert这种函数?
Imports那些库可有什么翻阅它的方式吗?例如我想翻阅"Imports System.Runtime.InteropServices"的代码,那么我应该如何干?
- Imports System
- Imports Microsoft.VisualBasic
- Imports System.Runtime.InteropServices
- Public Class LibWrap
- <DllImport("msvcrt.dll", CallingConvention := CallingConvention.Cdecl)> _
- Overloads Shared Function printf ( _
- format As String, i As Integer, d As Double) As Integer
- End Function
- <DllImport("msvcrt.dll", CallingConvention := CallingConvention.Cdecl)> _
- Overloads Shared Function printf ( _
- format As String, i As Integer, s As String) As Integer
- End Function
- xxxxxx...........
- End Class 'LibWrap
复制代码
|
|