
Windows directory question
Quote:
> Hello out there, all. I have 2 quick questions.
>First off, Does anyone out there know of any spiffy
>routines that work with AVI files; be it a
>freeware/shareware VBX or whatever. And second, is there
>a constant or anything that points to the "windows"
>directory...anything to let my Application know what the
>windows directory is. --Thanks :-)
1. with MCI.VBX
MC1.Notify = True
MC1.Shareable = False
MC1.DeviceType = "WaveAudio"
MC1.FileName = voice + "O.WAV"
MC1.Command = "Open"
MC1.Wait = True
MC1.Command = "Play"
MC1.Command = "Close"
2. Declare Function GetWindowsDirectory Lib "Kernel" (ByVal lpBuffer As
String, ByVal nSize As Integer) As Integer
dim windows_path as STRING
windows_path = String$(144, Chr$(0)): res% =
GetWindowsDirectory(windows_path, 144)
windows_path = Trim$(UCase$(Left$(windows_path,
InStr(windows_path, Chr$(0)) - 1)))
If Right$(windows_path, 1) <> "\" Then windows_path = windows_path + "\"
------------------------------------------------------------
Revised VB Site: http://www.ionet.net/~robinson/vb.html
ShareWare Site: http://www.ionet.net/~robinson/home.html
------------------------------------------------------------