如何在 Iaccessible 接口的 accLoacation() 方法中启动参数?
How to initiate the parameters in accLoacation() method of Iaccessible interface?
>我尝试使用Iaccess接口的accLocation((方法检索元素的屏幕位置,但无法启动该方法的参数
IAccessible *plocation;
long *x;
long *y;
long *width;
long *height;
VARIANT varChild;
varChild.vt = VT_I4;
varChild.iVal = CHILDID_SELF;
hr = pIaccessible->GetIAccessible(&plocation);
hr = plocation->accLocation(x, y, width, height, varChild);
但是当我运行它时,错误消息如下:
uninitialized local variable 'x'used,
uninitialized local variable 'y'used,
uninitialized local variable 'width'used,
uninitialized local variable 'height'used
我有一种感觉,你需要使用:
long x;
long y;
long width;
long height;
...
// Pass the addresses of objects where the values can be stored.
hr = plocation->accLocation(&x, &y, &width, &height, varChild);
相关文章:
- C++ POCO - 如何在不使用 run() 方法的情况下启动线程池上的线程?
- 如何在 Iaccessible 接口的 accLoacation() 方法中启动参数?
- QTimer timeout()方法不再在代码重组后启动
- 是否有其他方法将.dll文件从一个项目复制到我的启动项目中的可执行文件旁边
- 不同向量启动作为类成员与方法中不同的矢量启动背后的原因是什么?
- 有没有一种方法可以自动将.natvis附加到使用-DebugExe启动的调试会话
- 验证方法在使用OpenSSL内存BIOs的第二个ClientHello之后未启动
- 用引用成员的不同方法来启动结构
- 而不是在 lua 中创建一个对象,如何让 lua 直接高C++对象来启动方法?
- 保存“编辑控件”用户输入并在应用程序重新启动C++Visual Studio时进行恢复的有效方法
- 为什么连VS调试器外启动的程序都不能调用terminate方法呢
- ISO禁止启动自己类方法的线程
- 从异步启动的方法回调的最优雅方式
- QTimer 在以单独的方法启动时崩溃
- 在 C++11 之前启动容器类成员的简单方法
- C++ System() 的替代方法,用于启动多个命令提示符.威纳皮 ( 无 MFC ).
- 在C++中使用system()以防止启动新进程的替代方法
- 窗口在进程启动前没有弹出 ->尝试了 sleep() 方法,但"fails"
- 从 void 方法启动线程
- 当使用CreateProcessLogonW或类似的方法启动时,进程启动,但不能运行