ZjiÜt∞nφ zßkladnφch adresß°∙ Windows |
Postup: V modulu deklarujte: Public Declare Function GetSystemDirectory Lib "kernel32" Alias "GetSystemDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long Public Declare Function GetTempPath Lib "kernel32" Alias "GetTempPathA" (ByVal nSize As Long, ByVal lpBuffer As String) As Long Public Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long *Ka₧dß deklarace musφ b²t celß na samostatnΘ °ßdce Private Function GetWinDir() As String
Dim r As Long End Function Public Function GetTempDir() As String
Dim r As Long End Function Private Function GetSystemDir() As String
Dim r As Long End Function Private Function TrimNull(item As String)
Dim pos As Integer End Function Ve formulß°i, na udßlost Click tlaΦφtka:
Label1 = GetWinDir() End Sub Spus¥te projekt. Po kliknutφ na tlaΦφtko se do jednotliv²ch jmenovek vyplnφ p°φsluÜnΘ ·daje. |
Autor: The Bozena |