易截截图软件、单文件、免安装、纯绿色、仅160KB

vb 2008 FileGet()函数如何使用?

VB.NET code:
Private Sub TextBox1_DragDrop(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles TextBox1.DragDrop
Dim str() As String = CType(e.Data.GetData(DataFormats.FileDrop, False), String())
Dim data(8)
TextBox1.Text = str(0)
FileSystem.FileOpen(1, str(0), OpenMode.Binary, OpenAccess.Read, OpenShare.LockReadWrite)
FileGet(1, data)
FileClose(1)
For i = 0 To 8
TextBox1.Text = TextBox1.Text & data(i)
Next i
End Sub


用断点调试,结果表明最后执行的语句是FileGet(1,data),该句再往下就好像是用了Exit sub一样,全部没有执行

何解?大大们要救救我啊~~~~~~~~~~

streamreader如何使用?还望大大多多指点

而且我需要读入二进制数据而不是字符

http://blog.csdn.net/hahanan1987/archive/2009/03/05/3959469.aspx

我知道了,问题用binaryreader解决了。

但是还想了解一下,为什么VB 2008就不能用VB 6的语法了呢?函数既然存在却又使用不正常?非常困惑


相关问答:

vb打印问题


Printer.ScaleMode = 6
6表示毫米
Printer.PaperSize = vbPRPSA4

'初始坐标
x = 1
y = 4


'最大的线筐
Printer.DrawStyle = 0
Printer.Line (x, y)-(x + 132.5, y) ......

vb如何调用Illustrator(此前Illustrator未启动)?

请教一下:我用vb写了一个调用Illustrator的测试程序,代码很简单:Private Sub Command1_Click()
Dim app As New Illustrator.Application
Dim doc As Illustrator.Document
Dim thislayer As Illustrator.Layer ......

vb打印

要用vb打印一条线,长度是100毫米怎么写?
关注

VB code:
Printer.ScaleMode = vbMillimeters
Printer.Line (10, 10)-(110, 10)

    Printer.ScaleMode = vbMillimeters
    Print ......

从VB转行VB.NET~~~开始的时候如何学基础入门啊~

VB偶学得不错,现在大一,高三的时候就学VB了,现在学校里都是学C#和VB.NET的兄弟多。。。
偶要转行VB.NET了~当年学VB学了2年,对VB里面的常用函数都十分了解。
Select、If结构、For Next循环、等都了解。。。 ......

VB如何联系两个窗体?

就是设计一个计算机模拟考试系统,带有学生和管理员,所以登录窗体和主窗体想分开,登陆学生的显示学生的主窗体,登陆管理员显示管理主窗体,我只会一个窗体用一堆控件,现在享有多个主窗体,不知道怎么做,希望请大 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号