怎样声明windowsAPI函数?

zzhouj 2002-03-29 04:35:46
同上
...全文
43 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
zzhouj 2002-03-29
  • 打赏
  • 举报
回复
thanks
tainy 2002-03-29
  • 打赏
  • 举报
回复
在declare声明变量的窗口里,选取local external funtions声明。
如果是全局的就在global external funtions声明。不用谢~!
zzhouj 2002-03-29
  • 打赏
  • 举报
回复
在哪里声明啊?
怎样声明:
SUBROUTINE keybd_event(int bVk,int bScan,int dwFlags,int dwExtraInfo) library "user32.dll"
这个声明对不对?
byfq 2002-03-29
  • 打赏
  • 举报
回复
////eg.
FUNCTION int xyz_copy(ref string sour,ref string dist) LIBRARY "fileop.dll"
FUNCTION int is_diskin(int drvnum) LIBRARY "fileop.dll"
FUNCTION int readport(int com) LIBRARY "wzds1.dll"
FUNCTION ulong CopyFile(ref string lpExistingFileName,ref string lpNewFileName,ulong bFailIfExists) LIBRARY "kernel32.dll" ALIAS FOR "CopyFileA"
FUNCTION ulong SetFileAttributes(ref string lpFileName,ulong dwFileAttributes) LIBRARY "kernel32.dll" ALIAS FOR "SetFileAttributesA"
FUNCTION ulong GetCurrentDirectory(ulong nBufferLength,ref string lpBuffer) LIBRARY "kernel32.dll"
FUNCTION ulong SetCurrentDirectory(ref string lpPathName) LIBRARY "kernel32.dll" ALIAS FOR "SetCurrentDirectoryA"
FUNCTION ulong GetFileAttributes(ref string lpFileName) LIBRARY "kernel32.dll" ALIAS FOR "GetFileAttributesA"

680

社区成员

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

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