C to VB.NET
c api:
void* CSport(void);
bool DSport(void *comm);
void main
{
void* comm;
if ((comm=CSport())==NULL)
{
return
};
DSport(comm);
}
11 个解决方案
#1
补充:
上面两个api是从bt.dll声明的
上面两个api是从bt.dll声明的
#2
顶
#3
不是吧,没人帮忙吗?
是分少了???
是分少了???
#4
Dim CSportCType(As void*, void)
Boolean DSport(void *comm)
void main
{
Dim comm As void*
If (comm=CSport())=NULL Then
Return
End If
DSport(comm)
}
不是很确定·
Boolean DSport(void *comm)
void main
{
Dim comm As void*
If (comm=CSport())=NULL Then
Return
End If
DSport(comm)
}
不是很确定·
#5
难道说这几句代码根本就是错的???
#6
呵呵~
沉得真快
沉得真快
#7
呵呵~
沉得真快
沉得真快
#8
顶
#9
顶
#10
void* 就是 object
#11
function CSport() as object
.....
end function
function DSport(byval obj as Object ) as boolean
....
end function
sub main()
dim comm as object =CSport()
if typeof comm is dbnull then
exit sub
end if
DSport(comm)
end sub
.....
end function
function DSport(byval obj as Object ) as boolean
....
end function
sub main()
dim comm as object =CSport()
if typeof comm is dbnull then
exit sub
end if
DSport(comm)
end sub
#1
补充:
上面两个api是从bt.dll声明的
上面两个api是从bt.dll声明的
#2
顶
#3
不是吧,没人帮忙吗?
是分少了???
是分少了???
#4
Dim CSportCType(As void*, void)
Boolean DSport(void *comm)
void main
{
Dim comm As void*
If (comm=CSport())=NULL Then
Return
End If
DSport(comm)
}
不是很确定·
Boolean DSport(void *comm)
void main
{
Dim comm As void*
If (comm=CSport())=NULL Then
Return
End If
DSport(comm)
}
不是很确定·
#5
难道说这几句代码根本就是错的???
#6
呵呵~
沉得真快
沉得真快
#7
呵呵~
沉得真快
沉得真快
#8
顶
#9
顶
#10
void* 就是 object
#11
function CSport() as object
.....
end function
function DSport(byval obj as Object ) as boolean
....
end function
sub main()
dim comm as object =CSport()
if typeof comm is dbnull then
exit sub
end if
DSport(comm)
end sub
.....
end function
function DSport(byval obj as Object ) as boolean
....
end function
sub main()
dim comm as object =CSport()
if typeof comm is dbnull then
exit sub
end if
DSport(comm)
end sub