# 关于GetWindowsDirectory API的问题..

Posted by SATURNBOY on June 03, 1997 at 16:50:12:

HI! 小吴好!

程式码如下:(在vb6.0下,使用WIN95a)
------------------------------------------------------------------------------------------------------------
Dim WinDir As String * 20
Dim Rtval As Integer

Rtval = GetWindowsDirectory(WinDir, 20)
'抓出windows的目录 WinDir = c:\windows

label1.Caption = WinDir & "\win.ini"
'应该label1会显示 c:\windows\win.ini
'可是结果却还是 c:\windows
为啥会如此呢?

谢啦!

Follow Ups:

- Re: 关于GetWindowsDirectory API的问题.. 小吴 00:32:59 6/04/97 (0)