void* CSport(void);
bool DSport(void *comm);
void main
{
void* comm;
if ((comm=CSport())==NULL)
{
return
};
DSport(comm);
}
上面两个API(CSport,DSport)是从bt.dll声明的,不知道转成vb.net要怎么写.
如果声明成declare sub CSport()
那后面的comm=CSport怎么可能得到返回值?
还有CSport(void)里面的void后面根本没有变量,是写少了?还是不需要,并且C是可以这样写的?
总之这几句代码真看不明白,在VB.NET和C#版里都没人会,到这里来碰碰运气.
能告诉每一句的意思也行.谢了.
4 个解决方案
#1
顶
#2
帮顶!!
#3
Declare Function CSport Lib "bt.dll" () As IntPtr
Declare Function DSport Lib "bt.dll" (ByVal comm As IntPtr) As Boolean
#4
up
#1
顶
#2
帮顶!!
#3
Declare Function CSport Lib "bt.dll" () As IntPtr
Declare Function DSport Lib "bt.dll" (ByVal comm As IntPtr) As Boolean
#4
up