如下C程序,VB如何实现
void Test(unsigned char *p){
MessageBox(p);
}
void Display(void){
unsigned char s[20];
strcpy((char *)s,"832476825");
Test(s);
}
void Test(unsigned char *p){
MessageBox(p);
}
void Display(void){
unsigned char s[20];
strcpy((char *)s,"832476825");
Test(s);
}
解决方案 »
- 查找问题
- 问一个白痴的问题,VB中的各个窗体和三个主程序它们执行的顺序
- 存储过程问题,很简单的,可惜我怎么也找不出问题所在,1小时内解决给分!
- 请问怎么样通过SQL 语言得到某个EXcel文件的所有sheet的名字?
- 请问怎么向access的某个表中添加子表呀?
- 大家在作数据库时都会遇到的问题
- 应用程序里的图标和图片
- 为什么不能建立IIS工程?
- 我是把第一个放在了分组框frame中,复制的时候怎么才能将其它的也放在frame中呢
- 请熟悉ReadProcessMemory和WriteProcessMemory这两个函数的高手进入!
- 为什么数据库中的text控建在有数据的情况以运行程序text控建里面就有内容
- 数据库查询功能虽然可以实现,但是以进入界面,text控建一开始就显示了数据库里面的东西,怎么解决?
msgbox join(chararr)
end functionfunction display()
dim i as long
dim str as string
s(19) as string
str="832476825"
for i=0 to len(str)
if i<=19 then
s(i)=mid$(str,i,1)
end if
next
call test(s)
end function
MsgBox Join(chararr)
End FunctionFunction display()
Dim i As Long
Dim str As String
Dim s(19) As String
str = "832476825"
For i = 1 To Len(str)
s(i) = Mid(str, i, 1)
Next
Call test(s)
End Function
void Test(unsigned char *p,int Len){
while(len--){
串口=*p; //将数据发送到串口
p++;
}
}
void Display(void){
unsigned char s[25]={1,2,3,137,5,6,7,8,9,0,
1,2,3,21,4,12,45,56,56,245,
89,167,191,161,12
};
Test(s,20);
}
Dim arr(10) As Byte
Dim i As Integer
For i = 1 To 10
arr(i) = i
Next
i = aa(arr())
Debug.Print i
End SubPrivate Function aa(ar() As Byte) As Byte
Debug.Print ar(3)
aa = 5
End Function输出
3
5