亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? common.bas

?? 用VB編寫的學生成績管理系統主要的功能有學生信息
?? BAS
?? 第 1 頁 / 共 5 頁
字號:
' Add a trailing URL path separator (forward slash) to the
' end of a URL unless one (or a back slash) already exists
'
' IN/OUT: [strPathName] - path to add separator to
'-----------------------------------------------------------
'
Sub AddURLDirSep(strPathName As String)
    If Right(Trim(strPathName), Len(gstrSEP_URLDIR)) <> gstrSEP_URLDIR And _
       Right(Trim(strPathName), Len(gstrSEP_DIR)) <> gstrSEP_DIR Then
        strPathName = Trim(strPathName) & gstrSEP_URLDIR
    End If
End Sub

'-----------------------------------------------------------
' FUNCTION: FileExists
' Determines whether the specified file exists
'
' IN: [strPathName] - file to check for
'
' Returns: True if file exists, False otherwise
'-----------------------------------------------------------
'
Function FileExists(ByVal strPathName As String) As Integer
    Dim intFileNum As Integer

    On Error Resume Next

    '
    ' If the string is quoted, remove the quotes.
    '
    strPathName = strUnQuoteString(strPathName)
    '
    'Remove any trailing directory separator character
    '
    If Right$(strPathName, 1) = gstrSEP_DIR Then
        strPathName = Left$(strPathName, Len(strPathName) - 1)
    End If

    '
    'Attempt to open the file, return value of this function is False
    'if an error occurs on open, True otherwise
    '
    intFileNum = FreeFile
    Open strPathName For Input As intFileNum

    FileExists = IIf(Err = 0, True, False)

    Close intFileNum

    Err = 0
End Function

'-----------------------------------------------------------
' FUNCTION: DirExists
'
' Determines whether the specified directory name exists.
' This function is used (for example) to determine whether
' an installation floppy is in the drive by passing in
' something like 'A:\'.
'
' IN: [strDirName] - name of directory to check for
'
' Returns: True if the directory exists, False otherwise
'-----------------------------------------------------------
'
Public Function DirExists(ByVal strDirName As String) As Integer
    Const strWILDCARD$ = "*.*"

    Dim strDummy As String

    On Error Resume Next

    AddDirSep strDirName
    strDummy = Dir$(strDirName & strWILDCARD, vbDirectory)
    DirExists = Not (strDummy = vbNullString)

    Err = 0
End Function

'-----------------------------------------------------------
' FUNCTION: GetDriveType
' Determine whether a disk is fixed, removable, etc. by
' calling Windows GetDriveType()
'-----------------------------------------------------------
'
Function GetDriveType(ByVal intDriveNum As Integer) As Integer
    '
    ' This function expects an integer drive number in Win16 or a string in Win32
    '
    Dim strDriveName As String
    
    strDriveName = Chr$(Asc("A") + intDriveNum) & gstrSEP_DRIVE & gstrSEP_DIR
    GetDriveType = CInt(GetDriveType32(strDriveName))
End Function

'-----------------------------------------------------------
' FUNCTION: ReadProtocols
' Reads the allowable protocols from the specified file.
'
' IN: [strInputFilename] - INI filename from which to read the protocols
'     [strINISection] - Name of the INI section
'-----------------------------------------------------------
Function ReadProtocols(ByVal strInputFilename As String, ByVal strINISection As String) As Boolean
    Dim intIdx As Integer
    Dim fOk As Boolean
    Dim strInfo As String
    Dim intOffset As Integer
    
    intIdx = 0
    fOk = True
    Erase gProtocol
    gcProtocols = 0
    
    Do
        strInfo = ReadIniFile(strInputFilename, strINISection, gstrINI_PROTOCOL & Format$(intIdx + 1))
        If strInfo <> vbNullString Then
            intOffset = InStr(strInfo, gstrCOMMA)
            If intOffset > 0 Then
                'The "ugly" name will be first on the line
                ReDim Preserve gProtocol(intIdx + 1)
                gcProtocols = intIdx + 1
                gProtocol(intIdx + 1).strName = Left$(strInfo, intOffset - 1)
                
                '... followed by the friendly name
                gProtocol(intIdx + 1).strFriendlyName = Mid$(strInfo, intOffset + 1)
                If (gProtocol(intIdx + 1).strName = "") Or (gProtocol(intIdx + 1).strFriendlyName = "") Then
                    fOk = False
                End If
            Else
                fOk = False
            End If

            If Not fOk Then
                Exit Do
            Else
                intIdx = intIdx + 1
            End If
        End If
    Loop While strInfo <> vbNullString
    
    ReadProtocols = fOk
End Function

'-----------------------------------------------------------
' FUNCTION: ResolveResString
' Reads resource and replaces given macros with given values
'
' Example, given a resource number 14:
'    "Could not read '|1' in drive |2"
'   The call
'     ResolveResString(14, "|1", "TXTFILE.TXT", "|2", "A:")
'   would return the string
'     "Could not read 'TXTFILE.TXT' in drive A:"
'
' IN: [resID] - resource identifier
'     [varReplacements] - pairs of macro/replacement value
'-----------------------------------------------------------
'
Public Function ResolveResString(ByVal resID As Integer, ParamArray varReplacements() As Variant) As String
    Dim intMacro As Integer
    Dim strResString As String
    
    strResString = LoadResString(resID)
    
    ' For each macro/value pair passed in...
    For intMacro = LBound(varReplacements) To UBound(varReplacements) Step 2
        Dim strMacro As String
        Dim strValue As String
        
        strMacro = varReplacements(intMacro)
        On Error GoTo MismatchedPairs
        strValue = varReplacements(intMacro + 1)
        On Error GoTo 0
        
        ' Replace all occurrences of strMacro with strValue
        Dim intPos As Integer
        Do
            intPos = InStr(strResString, strMacro)
            If intPos > 0 Then
                strResString = Left$(strResString, intPos - 1) & strValue & Right$(strResString, Len(strResString) - Len(strMacro) - intPos + 1)
            End If
        Loop Until intPos = 0
    Next intMacro
    
    ResolveResString = strResString
    
    Exit Function
    
MismatchedPairs:
    Resume Next
End Function
'-----------------------------------------------------------
' SUB: GetLicInfoFromVBL
' Parses a VBL file name and extracts the license key for
' the registry and license information.
'
' IN: [strVBLFile] - must be a valid VBL.
'
' OUT: [strLicKey] - registry key to write license info to.
'                    This key will be added to
'                    HKEY_CLASSES_ROOT\Licenses.  It is a
'                    guid.
' OUT: [strLicVal] - license information.  Usually in the
'                    form of a string of cryptic characters.
'-----------------------------------------------------------
'
Public Sub GetLicInfoFromVBL(strVBLFile As String, strLicKey As String, strLicVal As String)
    Dim fn As Integer
    Const strREGEDIT = "REGEDIT"
    Const strLICKEYBASE = "HKEY_CLASSES_ROOT\Licenses\"
    Dim strTemp As String
    Dim posEqual As Integer
    Dim fLicFound As Boolean
    
    fn = FreeFile
    Open strVBLFile For Input Access Read Lock Read Write As #fn
    '
    ' Read through the file until we find a line that starts with strLICKEYBASE
    '
    fLicFound = False
    Do While Not EOF(fn)
        Line Input #fn, strTemp
        strTemp = Trim(strTemp)
        If Left$(strTemp, Len(strLICKEYBASE)) = strLICKEYBASE Then
            '
            ' We've got the line we want.
            '
            fLicFound = True
            Exit Do
        End If
    Loop

    Close fn
    
    If fLicFound Then
        '
        ' Parse the data on this line to split out the
        ' key and the license info.  The line should be
        ' the form of:
        ' "HKEY_CLASSES_ROOT\Licenses\<lickey> = <licval>"
        '
        posEqual = InStr(strTemp, gstrASSIGN)
        If posEqual > 0 Then
            strLicKey = Mid$(Trim(Left$(strTemp, posEqual - 1)), Len(strLICKEYBASE) + 1)
            strLicVal = Trim(Mid$(strTemp, posEqual + 1))
        End If
    Else
        strLicKey = vbNullString
        strLicVal = vbNullString
    End If
End Sub

 '-----------------------------------------------------------
 ' FUNCTION GetLongPathName
 '
 ' Retrieve the long pathname version of a path possibly
 '   containing short subdirectory and/or file names
 '-----------------------------------------------------------
 '
 Function GetLongPathName(ByVal strShortPath As String) As String
    On Error GoTo 0
    
    MakeLongPath (strShortPath)
    GetLongPathName = StripTerminator(strShortPath)
 End Function
 
 '-----------------------------------------------------------
 ' FUNCTION GetShortPathName
 '
 ' Retrieve the short pathname version of a path possibly
 '   containing long subdirectory and/or file names
 '-----------------------------------------------------------
 '
 Function GetShortPathName(ByVal strLongPath As String) As String
     Const cchBuffer = 300
     Dim strShortPath As String
     Dim lResult As Long

     On Error GoTo 0
     strShortPath = String(cchBuffer, Chr$(0))
     lResult = OSGetShortPathName(strLongPath, strShortPath, cchBuffer)
     If lResult = 0 Then
         'Error 53 ' File not found
         'Vegas#51193, just use the long name as this is usually good enough
         GetShortPathName = strLongPath
     Else
         GetShortPathName = StripTerminator(strShortPath)
     End If
 End Function
 
'-----------------------------------------------------------
' FUNCTION: GetTempFilename
' Get a temporary filename for a specified drive and
' filename prefix
' PARAMETERS:
'   strDestPath - Location where temporary file will be created.  If this
'                 is an empty string, then the location specified by the
'                 tmp or temp environment variable is used.
'   lpPrefixString - First three characters of this string will be part of
'                    temporary file name returned.
'   wUnique - Set to 0 to create unique filename.  Can also set to integer,
'             in which case temp file name is returned with that integer
'             as part of the name.
'   lpTempFilename - Temporary file name is returned as this variable.
' RETURN:
'   True if function succeeds; false otherwise
'-----------------------------------------------------------
'
Function GetTempFilename(ByVal strDestPath As String, ByVal lpPrefixString As String, ByVal wUnique As Integer, lpTempFilename As String) As Boolean
    If strDestPath = vbNullString Then
        '
        ' No destination was specified, use the temp directory.
        '
        strDestPath = String(gintMAX_PATH_LEN, vbNullChar)
        If GetTempPath(gintMAX_PATH_LEN, strDestPath) = 0 Then
            GetTempFilename = False
            Exit Function
        End If
    End If
    lpTempFilename = String(gintMAX_PATH_LEN, vbNullChar)
    GetTempFilename = GetTempFilename32(strDestPath, lpPrefixString, wUnique, lpTempFilename) > 0
    lpTempFilename = StripTerminator(lpTempFilename)
End Function
'-----------------------------------------------------------
' FUNCTION: GetDefMsgBoxButton
' Decode the flags passed to the MsgBox function to
' determine what the default button is.  Use this
' for silent installs.
'
' IN: [intFlags] - Flags passed to MsgBox
'
' Returns: VB defined number for button
'               vbOK        1   OK button pressed.
'               vbCancel    2   Cancel button pressed.
'               vbAbort     3   Abort button pressed.
'               vbRetry     4   Retry button pressed.
'               vbIgnore    5   Ignore button pressed.
'               vbYes       6   Yes button pressed.
'               vbNo        7   No button pressed.
'-----------------------------------------------------------
'
Function GetDefMsgBoxButton(intFlags) As Integer
    '
    ' First determine the ordinal of the default
    ' button on the message box.
    '
    Dim intButtonNum As Integer
    Dim intDefButton As Integer
    
    If (intFlags And vbDefaultButton2) = vbDefaultButton2 Then
        intButtonNum = 2
    ElseIf (intFlags And vbDefaultButton3) = vbDefaultButton3 Then
        intButtonNum = 3

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品在线观看播放| 久久久久九九视频| 久久精品日产第一区二区三区高清版| 欧美激情一区二区三区四区| 婷婷中文字幕综合| www.久久久久久久久| 精品盗摄一区二区三区| 亚洲国产你懂的| 91丨九色丨蝌蚪丨老版| 久久蜜桃一区二区| 美女视频黄久久| 欧美日韩一区视频| 亚洲欧美福利一区二区| 国产91精品一区二区麻豆网站| 日韩欧美一级精品久久| 性做久久久久久免费观看欧美| 成人av动漫网站| 国产视频一区二区在线| 久久国产精品露脸对白| 制服丝袜中文字幕一区| 亚洲va欧美va人人爽| 色伊人久久综合中文字幕| 成人欧美一区二区三区1314| 国产精品996| 久久久国产一区二区三区四区小说 | 亚洲人成精品久久久久| 国产成人精品综合在线观看| 久久在线观看免费| 国内久久精品视频| 久久免费国产精品| 国产**成人网毛片九色 | 韩国精品主播一区二区在线观看 | 欧美亚洲图片小说| 亚洲自拍偷拍av| 欧美视频中文字幕| 日韩精品高清不卡| 日韩亚洲欧美高清| 久久99国内精品| 久久久青草青青国产亚洲免观| 激情小说亚洲一区| 国产欧美日韩麻豆91| 国产成人av电影在线观看| 久久久精品天堂| eeuss影院一区二区三区| 最新热久久免费视频| 色久综合一二码| 亚洲电影激情视频网站| 91精品国产91久久综合桃花| 久久黄色级2电影| 久久久精品tv| 一本色道久久综合亚洲91| 香蕉久久一区二区不卡无毒影院 | 蜜臀av在线播放一区二区三区 | 欧美亚洲动漫制服丝袜| 日韩在线一区二区| 亚洲精品一区二区在线观看| 播五月开心婷婷综合| 亚洲最新视频在线播放| 日韩一区二区影院| 成人深夜视频在线观看| 亚洲国产成人porn| 26uuu另类欧美| 91在线精品一区二区| 亚洲一区二区三区在线| 久久综合色8888| 99re6这里只有精品视频在线观看| 亚洲国产综合色| 国产婷婷精品av在线| 欧美日韩精品专区| 国产成人精品影视| 日本成人在线不卡视频| 国产精品免费视频观看| 欧美精品在线一区二区三区| 国产suv一区二区三区88区| 亚洲第一电影网| 中文字幕不卡在线观看| 7777精品久久久大香线蕉| 国产成人精品三级麻豆| 天堂资源在线中文精品| 国产精品九色蝌蚪自拍| 日韩欧美在线影院| 日本高清无吗v一区| 国产专区综合网| 日本成人中文字幕在线视频| 亚洲女厕所小便bbb| 久久精品一区二区| 91麻豆精品国产91久久久使用方法 | 欧美视频一区在线观看| 国产不卡一区视频| 美腿丝袜亚洲一区| 亚洲成人一二三| 成人免费小视频| 国产网站一区二区三区| 日韩一级欧美一级| 欧美三级午夜理伦三级中视频| 国产99久久久精品| 韩国精品一区二区| 丝袜美腿亚洲综合| 亚洲h精品动漫在线观看| 亚洲欧美日韩在线播放| 国产精品拍天天在线| 精品国产乱子伦一区| 日韩一区二区视频| 日韩一区二区三区观看| 91精品国产日韩91久久久久久| 91久久线看在观草草青青| 99精品国产99久久久久久白柏| 国产一区二区精品久久91| 蜜臀av在线播放一区二区三区| 亚洲第一狼人社区| 亚州成人在线电影| 丝袜亚洲另类欧美| 免费高清在线一区| 日韩二区在线观看| 亚洲va国产va欧美va观看| 亚洲国产一二三| 亚洲成人免费看| 日韩国产欧美在线播放| 午夜在线成人av| 日韩精品一二三区| 久久国产乱子精品免费女| 激情文学综合插| 国产黄色精品网站| 不卡av免费在线观看| 一本大道久久a久久综合| 一本大道综合伊人精品热热| 欧美性淫爽ww久久久久无| 欧美精品v日韩精品v韩国精品v| 99精品欧美一区| 欧美性受极品xxxx喷水| 欧美精品成人一区二区三区四区| 欧美精品v国产精品v日韩精品 | 久久精品国产秦先生| 国产在线视视频有精品| 成人毛片老司机大片| 91色婷婷久久久久合中文| 欧美色综合天天久久综合精品| 欧美一区二区三区啪啪| 国产日韩欧美在线一区| 亚洲天堂免费看| 日本欧美韩国一区三区| 国产呦精品一区二区三区网站| 国产精品88av| 色丁香久综合在线久综合在线观看| 欧美在线观看视频一区二区| 欧美mv和日韩mv国产网站| 国产精品美女视频| 五月天久久比比资源色| 国产成人免费视频一区| 欧美日韩亚洲综合在线| 亚洲国产精品ⅴa在线观看| 亚洲综合偷拍欧美一区色| 精品在线观看视频| 在线视频欧美区| 精品粉嫩aⅴ一区二区三区四区| 亚洲人成人一区二区在线观看| 日韩和欧美一区二区三区| 成人深夜视频在线观看| 欧美一区二区日韩| 亚洲精品中文字幕乱码三区 | 懂色av中文一区二区三区| 欧洲精品一区二区三区在线观看| 日韩你懂的电影在线观看| 亚洲视频免费在线观看| 九九视频精品免费| 欧美日韩国产首页| 中文字幕在线观看不卡视频| 美国三级日本三级久久99 | 亚洲成国产人片在线观看| 国产精品一品二品| 91精品国产综合久久久蜜臀图片| 日本一区二区电影| 老色鬼精品视频在线观看播放| 91在线丨porny丨国产| 久久久精品综合| 青青国产91久久久久久| 在线观看免费成人| 136国产福利精品导航| 国产精品亚洲人在线观看| 91精品国产黑色紧身裤美女| 亚洲欧美另类图片小说| 国产成人av一区二区三区在线 | 性久久久久久久| 日本乱码高清不卡字幕| 日本一区二区综合亚洲| 精品系列免费在线观看| 制服丝袜国产精品| 丝袜脚交一区二区| 欧美精品乱码久久久久久| 亚洲一区视频在线| 欧洲色大大久久| 一区二区三区精品| 成人av电影在线| 中文字幕一区二区三区不卡| 国产成人小视频| 国产亚洲一区二区三区四区| 精彩视频一区二区| 久久久久久久综合| 国产激情偷乱视频一区二区三区| 精品999久久久|