各位兄弟,请人帮忙把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;
}
}
}
...全文
116 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
  • 打赏
  • 举报
回复
到网上搜索一下,有转换的工具。
这是第六版的介绍《ASP.NET 4入门经典:涵盖C#VB.NET(第6版)》内容简介:ASP.NET是.NET Framework的一部分,用于构建内容丰富的动态Web站点。其最新的版本ASP.NET 4对上一版进行了许多改进,包括增强了Web窗体,并添加了jQuery的支持。《ASP.NET 4入门经典:涵盖C#VB.NET(第6版)》循序渐进,逐步讲解了如何使用ASP.NET 4构建内容丰富的Web站点,并提供了大量使用C#和VB的示例。通过实际动手练习,您将学到关于构建Web站点的第一手信息,同时能够深刻理解在浏览器中查看ASP.NET 4页面时,后台到底发生了什么。 这是第七版,也就是本源码书的介绍 The ultimate programming guide to ASP.NET 4.5, by popular author and Microsoft MVP Imar Spaanjaars Updated for ASP.NET 4.5, this introductory book is filled with helpful examples and contains a user-friendly, step-by-step format. Written by popular author and Microsoft ASP.NET MVP Imar Spaanjaars, this book walks you through ASP.NET, Microsoft's technology for building dynamically generated web pages. This edition retains the highly accessible approach to building the Planet Wrox website example, an online community site featuring product reviews, picture sharing, bonus content for registered users, and more. Contains the comprehensive guide to the latest technology additions to ASP.NET 4.5 Shows how to build basic ASP.NET web pages and configure their server Includes information on how to add features with pre-built server controls Reveals how to design pages and make them consistent Contains the information needed for getting user input and displaying data Beginning ASP.NET 4.5 in C# and VB uses Spaanjaars's distinct writing style to put you at ease with learning ASP.NET 4.5.

111,131

社区成员

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

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

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