升二星散分,兼征代码!解决方法

升二星散分,兼征代码!
注意:这个帖子是“基础类”的技术帖,请其它版主不要再把它移到别的版块!!!
终于升二星了!升颗星不容易啊!

鉴于.net Framework是目前的一大方向,特开始写一些仿.net的实用类模块,有兴趣的也可回复补充一下自己封装的类成员等,多谢:)

File.cls

VB code
'---------------------------------------------------
' 模块      : File
' 时间      : 2010-7-10 07:20
' 作者      : 杨过.网狐.cn 等
' 功能      : 使用近似.net Framework中System.IO名称空间中File类成员设计的方式设计VB6版的File类
' 备注      :
'---------------------------------------------------

Option Explicit
Private Declare Function GetFileAttributesAPI Lib "kernel32" Alias "GetFileAttributesW" (ByVal lpFileName As Long) As Long
Private Function GetFileAttributes(ByVal lpFileName As String) As Long
    GetFileAttributes = GetFileAttributesAPI(StrPtr(lpFileName))
End Function

Public Sub Delete(ByVal path As String)
    Dim blnResult As Boolean
    
    blnResult = DeleteFile(path)
    If (Not blnResult) Then
        Err.Raise GetLastError
    End If
End Sub

Public Function Exists(path As String) As Boolean
    Exists = (GetFileAttributes(path) <> &HFFFFFFFF)
    
End Function
Public Function GetAttributes(ByVal path As String) As Long ' FileAttributes
    GetAttributes = GetFileAttributes(path)
End Function


代码最近更新于2010-7-12

------解决方案--------------------
不会 帮顶
------解决方案--------------------
果断接分
------解决方案--------------------
恭喜升星
------解决方案--------------------
恭喜楼主!
------解决方案--------------------
路过,道喜
------解决方案--------------------
帮楼主顶。
------解决方案--------------------
边看世界杯,边接分!
------解决方案--------------------
恭喜...
------解决方案--------------------
果断接分
------解决方案--------------------
这是个什么
------解决方案--------------------
恭喜恭喜
------解决方案--------------------
^_^
------解决方案--------------------
恭喜楼主!
------解决方案--------------------
恭喜楼主!
------解决方案--------------------
恭喜恭喜啊 接分~
------解决方案--------------------
congratulations to you!
------解决方案--------------------
接分,路过.........................
------解决方案--------------------
好久没来了,顶个先 :) 老杨同志还奋斗在第一线哈:)
------解决方案--------------------
恭喜LZ!
刷分!
------解决方案--------------------
恭喜

不过不支持lz这么做。VB是很低端的用户群。

不要看着五星大酒店气派,就在贫民街区也想开一家。
------解决方案--------------------
恭喜楼主啊, 顺便接分
------解决方案--------------------