我从来就没有在pb用过api,有谁能帮帮我么?

hovoy 2002-03-06 05:02:54
在那可以找到pb中api信息!
...全文
120 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
hovoy 2002-03-06
  • 打赏
  • 举报
回复
pb这里的api函数是不是和vb 中的一样呢? 不同的仅仅是申明么?
mars884813 2002-03-06
  • 打赏
  • 举报
回复
这么多例子够了吧:

FUNCTION ulong GetCurrentDirectoryA(ulong BufferLen, ref string currentdir) LIBRARY "kernel32.dll"

function boolean AnimateWindow ( long hwnd, long dwtime, long dwflags ) library "user32"
subroutine Sleep(long dwMilliseconds) library "kernel32.dll"
function long RasCreatePhonebookEntryA(int hbook, string phonebook) Library "RASAPI32.dll"
FUNCTION ulong ShellExecute(ulong hwnd,ref string lpOperation,ref string lpFile,ref string lpParameters,ref string lpDirectory,ulong nShowCmd) LIBRARY "shell32.dll" ALIAS FOR "ShellExecuteA"

Function long ShellExecuteA (long hwnd, string lpOperation ,String lpFile, String lpParameters, String lpDirectory, Long nShowCmd) Library "shell32.dll"
Function long FindWindowA (long lpClassName , String lpWindowName ) Library "user32.dll"
Function boolean IsWindow (Long hwnd ) Library "user32.dll"


Function Long HtmlHelpA (long hwnd ,string lpHelpFile , long wCommand, string dwData) Library "hhctrl.ocx"
FUNCTION boolean CreateDirectoryA(ref string pathname,int sa) library"Kernel32.dll"

SUBROUTINE sleep(ulong milli)Library "Kernel32.dll"
hovoy 2002-03-06
  • 打赏
  • 举报
回复
hovoy@cmmail.com
2000pinbo 2002-03-06
  • 打赏
  • 举报
回复
想查一查api函数的功能,参数等详细情况。
如果用的是微软的api函数,查msdn.
hwma 2002-03-06
  • 打赏
  • 举报
回复
什么是API函数啊,没用过啊
akeewww 2002-03-06
  • 打赏
  • 举报
回复
申明一个API函数,用法与其它函数一个样
2000pinbo 2002-03-06
  • 打赏
  • 举报
回复
留下email,我给你个例子

401

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 非技术版
社区管理员
  • 非技术版社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧