怎样获取当前目录?
我用windows的API函数GetCurrentDirectory()获取当前的文件目录,但是返回一行乱码。
请文是什么问题?如何解决?请多赐教!
[此贴子已经被作者于2006-3-2 9:26:25编辑过]
如果是PB8或PB9直接用GetCurrentDirectory()
Description
Gets the current directory for your target application.
Syntax
GetCurrentDirectory ( )
Return value
String. Returns the full path name for the current directory.
This example puts the current directory name in a SingleLineEdit control:
sle_1.text = GetCurrentDirectory( )