请问:为什么在pb中调用createwindow()函数出错?

archerhe 2002-10-25 11:52:47
声明如下:
FUNCTION ulong CreateWindow(ref string lpClassName,ref string lpWindowName,ulong dwStyle,ulong x,ulong y,ulong nWidth,ulong nHeight,ulong hWndParent,ulong hMenu,ulong hInstance,Any lpParam) LIBRARY "user32.dll"
调用如下:
string classname='appname'
string wintext='hello world'
ulong x_poinster=0,y_poinster=0,instance=1,dwStyle=2, nWidth=550, nHeight=400,hWndParent,hMenu,hInstance=2
long lpParam
long handle
setnull(lpParam)
setnull(hWndParent)
setnull(hMenu)
handle=createwindow(classname,wintext,0,0,0,550,400,hWndParent,hMenu,handle(getApplication()),lpParam)
出错提示:
error calling external fucntion createwindow......
请问原因?
...全文
73 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
sdav 2002-11-12
  • 打赏
  • 举报
回复
我怎么没有找到这个函数呢?
你的提示是错误的函数调用
如果有这个API的话,那就是你声明错了,或者你调用时参数错误了哦~!

680

社区成员

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

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