搜索
编程论坛
→
数据库技术
→
『 PowerBuilder 』
→ [求助]getcurrentdirectorya()函数参数问题
标题:
[求助]getcurrentdirectorya()函数参数问题
只看楼主
wsl000
等 级:
新手上路
威 望:
4
帖 子:248
专家分:0
注 册:2006-3-8
楼主
问题点数:0 回复次数:3
[求助]getcurrentdirectorya()函数参数问题
string aa
ulong bb
bb=100
aa=space(bb)
GetCurrentDirectoryA(bb,aa)
我知道这个函数的功能是获得当前目录
但是我不知道其中参数的意义
搜索更多相关主题的帖子:
函数
参数
2006-05-30 09:52
ヤ順祺冄繎ヤ
等 级:
贵宾
威 望:
42
帖 子:3032
专家分:0
注 册:2005-11-9
第
2
楼
得分:0
getcurrentdirectoryA()
获取当前目录。通过GetCurrentDirectory函数可以获取当前目录,该函数声明为:Function Ulong GetCurrentDirectoryA(Ulong buflen, ref String dir) Library ″kernel32.dll″ 参数2为接收当前目录的字符缓冲区,前面必须加ref表示地址引用;参数1用来指定字符缓冲区的长度。调用过程为:
String curdir
curdir=Space(256)
//为字符缓冲区开辟内存空间
GetCurrentDirectoryA(256,curdir)
MessageBox(″Current Directory″,curdir)
" target="_blank">ヤ順祺冄繎ヤ
2006-05-30 10:22
wsl000
等 级:
新手上路
威 望:
4
帖 子:248
专家分:0
注 册:2006-3-8
第
3
楼
得分:0
我明白了
谢谢
2006-05-30 10:34
潇洒老乌龟
等 级:
贵宾
威 望:
18
帖 子:407
专家分:0
注 册:2005-12-13
第
4
楼
得分:0
PB8或PB9已经自带有函数.
getcurrentdirectory
乌龟学堂http://www. 承接各种软件开发、系统集成、网络搭建。 QQ:124030710
2006-05-30 14:41
4
1/1页
1
参与讨论请移步原网站贴子:
https://bbs.bccn.net/thread-68435-1-1.html
关于我们
|
广告合作
|
编程中国
|
清除Cookies
|
TOP
|
手机版
编程中国
版权所有,并保留所有权利。
Powered by
Discuz
, Processed in 1.103056 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved