Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共1 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:GetWindowText

1楼
jifeiran 发表于:2015/11/23 13:23:20
Set Wrap = CreateObject("DynamicWrapper")Wrap.Register "user32.dll","FindWindow","i=ss","f=s", "r=l"Wrap.Register "user32.dll","GetWindowText","i=lsl","f=s", "r=l"hwd = Wrap.FindWindow(vbNullString, "期货交易")Dim strText Dim lngResultstrText =String(255,vbNullChar)L=len(strText)lngResult =Wrap.GetWindowText(hwd,strText,256)MsgBox(strText)问题如下:hwd正确获得了,lngResult得返回值为8,但输出的strText为空字符。是何原因呢?谢谢
共1 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.07031 s, 2 queries.