PB10 是否支持外部函数引用的问题?
zhtch 2006-10-17 05:09:51 PB10 是否支持外部函数引用的问题
例如
取得我的文档路径的方法
Function long SHGetSpecialFolderLocation (Long hwndOwner, Integer nFolder, ref Long ppidl) library "shell32.dll"
Function long SHGetPathFromIDList(long pidl, ref String szPath) library "shell32.dll" Alias for "SHGetPathFromIDListA"
代码为
integer MYDOCUMENTS = 5 //'我的文档
long pidl
string sTmp
SHGetSpecialFolderLocation(0, MYDOCUMENTS, pidl)
SHGetPathFromIDList(pidl, sTmp)
messagebox('', sTmp)
在PB9中完全正常,但在PB10中路径变成了一堆乱码,请问高手如何解决?谢了。