首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > PB >

有何位大哥知道createdirectory和createdirectoryA用法和区别么

2013-01-07 
有哪位大哥知道createdirectory和createdirectoryA用法和区别么不太会调用API函数,哪位大哥指教下……[解决

有哪位大哥知道createdirectory和createdirectoryA用法和区别么
不太会调用API函数,哪位大哥指教下……
[解决办法]
type   SECURITY_ATTRIBUTES   from   structure   
  ulong nLength   
  ulong lpSecurityDescriptor   
  boolean bInheritHandle   
  end   type   

FUNCTION ulong CreateDirectory(ref string lpPathName,ref 
 SECURITY_ATTRIBUTES lpSecurityAttributes) LIBRARY "kernel32.dll" ALIAS FOR    "CreateDirectoryA"

它俩是一个东西!

string s_dir
SECURITY_ATTRIBUTES sa
s_dir = 'xxx'
sa.nlength = 0
...
createdricetory(s_dir,sa)   


[解决办法]

pb的CreateDirectory 函数可以再当前目录里建立一个子目录

string  ls_path="aaa"
integer li_filenum
CreateDirectory ( ls_path )

api的CreateDirectory 建目录也是但前目录

热点排行