各位兄弟,请人帮忙把C#翻译成VB.net 高分奉送,在线等

labc311 2008-12-30 01:37:15
各位兄弟,请人帮忙把C#翻译成VB.net
int nSize=1067;
byte[] szOneBuf=new byte[nSize];
byte[] szAllBuf=new byte[nCount*nSize];
unsafe
{
fixed(byte* pAllBuf=szAllBuf)
{
if(ShortMsg.GetDeliverMsg((IntPtr)pAllBuf)!=1)
{
MessageBox.Show("获取消息失败!");
return;
}
}
}
...全文
114 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
睡神在睡觉 2008-12-31
  • 打赏
  • 举报
回复
来完了,混分~
angelababa~ 2008-12-31
  • 打赏
  • 举报
回复
上面都说了,我就不说了
JF了
zw1724 2008-12-31
  • 打赏
  • 举报
回复
生成dll再反编译到VB
suners 2008-12-31
  • 打赏
  • 举报
回复
最后一UPO
labc311 2008-12-30
  • 打赏
  • 举报
回复
vb.net 中没有 Dim pAllBuf As Byte* = szAllBuf
wangping_li 2008-12-30
  • 打赏
  • 举报
回复

Dim nSize As Integer = 1067
Dim szOneBuf() As Byte = New Byte(nSize) {}
Dim szAllBuf() As Byte = New Byte(nCount*nSize) {}
unsafe
{
fixed(byte* pAllBuf=szAllBuf)
{
If ShortMsg.GetDeliverMsg(CType(pAllBuf,IntPtr))<>1 Then
MessageBox.Show("获取消息失败!")
Return
End If
}
}
clever_yang 2008-12-30
  • 打赏
  • 举报
回复
现在工具真方便.....
[Quote=引用 3 楼 wuyq11 的回复:]
Dim nSize As Integer = 1067
Dim szOneBuf As Byte() = New Byte(nSize - 1) {}
Dim szAllBuf As Byte() = New Byte(nCount * nSize - 1) {}
Dim pAllBuf As Byte* = szAllBuf
If ShortMsg.GetDeliverMsg(DirectCast(pAllBuf, IntPtr)) <> 1 Then
MessageBox.Show("获取消息失败!")
Return
End If
[/Quote]
kingcsx666 2008-12-30
  • 打赏
  • 举报
回复
顶顶看楼上

小生路过
wuyq11 2008-12-30
  • 打赏
  • 举报
回复
Dim nSize As Integer = 1067
Dim szOneBuf As Byte() = New Byte(nSize - 1) {}
Dim szAllBuf As Byte() = New Byte(nCount * nSize - 1) {}
Dim pAllBuf As Byte* = szAllBuf
If ShortMsg.GetDeliverMsg(DirectCast(pAllBuf, IntPtr)) <> 1 Then
MessageBox.Show("获取消息失败!")
Return
End If
djf_1985 2008-12-30
  • 打赏
  • 举报
回复
http://www.developerfusion.com/tools/convert/csharp-to-vb/
上面网站帮你翻译的
Dim nSize As Integer = 1067
Dim szOneBuf As Byte() = New Byte(nSize - 1) {}
Dim szAllBuf As Byte() = New Byte(nCount * nSize - 1) {}
Dim pAllBuf As Byte* = szAllBuf
If ShortMsg.GetDeliverMsg(DirectCast(pAllBuf, IntPtr)) <> 1 Then
MessageBox.Show("获取消息失败!")
Return
End If
microblue 2008-12-30
  • 打赏
  • 举报
回复
到网上搜索一下,有转换的工具。

111,130

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧