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

VB错误代码

3,Return without GoSub
5,Invalid procedure call
6,Overflow
7,Out of memory
9,Subscript out of range
10,This array is fixed or temporarily locked
11,Division by zero
13,Type mismatch
14,Out of string space
16,Expression too complex
17,Cant perform requested operation
18,User interrupt occurred
20,Resume without error
28,Out of stack space
35,Sub Function or Property not defined
47,Too many DLL application clients
48,Error in loading DLL
49,Bad DLL calling convention
51,Internal error
52,Bad file name or number
53,File not found
54,Bad file mode
55,File already open
57,Device I/O error
58,File already exists
59,Bad record length
61,Disk full
62,Input past end of file
63,Bad record number
67,Too many files
68,Device unavailable
70,Permission denied
71,Disk not ready
74,Cant rename with different drive
75,Path/File access error
76,Path not found
91,Object variable or With block variable not set
92,For loop not initialized
93,Invalid pattern string
94,Invalid use of Null
97,Cant call Friend procedure on an object that is not an instance of the
defining class
98,A property or method call cannot include a reference to a private object
298,System DLL could not be loaded
320,Cant use character device names in specified file names
321,Invalid file format
322,Can’t create necessary temporary file
325,Invalid format in resource file
327,Data value named not found
328,Illegal parameter; cant write arrays
335,Could not access system registry
336,ActiveX component not correctly registered
337,ActiveX component not found
338,ActiveX component did not run correctly
360,Object already loaded
361,Cant load or unload this object
363,ActiveX control specified not found
364,Object was unloaded
365,Unable to unload within this context
368,The specified file is out of date. This program requires a later version
371,The specified object cant be used as an owner form


相关文档:

VB.NET压缩ACCESS数据库

'创建数据库
  Private Sub Create(ByVal mdbPath As String)
        If File.Exists(mdbPath) Then
            Throw New Exception("目标数据库已经存在,无法创建")
        ......

VB 取地址函数大全

Public Declare Function VarPtrArray Lib "msvbvm60.dll" Alias "VarPtr" (Var() As Any) As Long
Public Declare Function VarPtrStringArray Lib "msvbvm60.dll" Alias "VarPtr" (Var() As Any) As Long
取对象地址: ObjPtr
取OLE对象的地址: OLE_NAME.LpOleObject
取函数地址: AddressOf
取字符串地址: StrPtr
取 ......

推荐一些VB的学习交流网站

http://www.Experts-Exchange.com: 非常好的问题 讨论区,高手数不尽,而且这里的人很有专业精神,不会讨论一些和程序无关又无聊的问题。不过想要别人帮你 解决问题,自己也要有真诚的态度。
http://www.Codeguru.com/vb: 有名的源码讨论站 点,特点是在每个源码下面都可以跟帖讨论。
http://www.planet-source-code.co ......

VB程序中使用脚本支持

 正在开发小秘书系统并不断提高其智能水平,其中用到的是脚本支持的技术
虽然这部分不属于初学者使用,然而有些人想学这个东东,这里就发~~~布出去吧!
新建一个标准exe工程(Standard EXE);
"工程"(Project)-->"部件"(Components)
选定"Microsoft Script Control 1.0" ,位置是C:\WINDOWS\system32\msscript.ocx
添 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号