标题:MFC 调用API的问题
取消只看楼主
wjputi
Rank: 2
等 级:论坛游民
帖 子:14
专家分:22
注 册:2007-12-11
 问题点数:0 回复次数:0 
MFC 调用API的问题
HWND hwnd;
hwnd=FindWindow(NULL, "Client" );

错误
error C2440: '=' : cannot convert from 'class CWnd *' to 'struct HWND__ *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

为什么FindWindow 得到的 居然是1个 CWnd
该如何解决 忘各位不吝赐教!

顺带也请教
    GetWindowThreadProcessId
    OpenProcess
这2 个函数的具体用法

[[it] 本帖最后由 wjputi 于 2008-6-4 15:05 编辑 [/it]]
搜索更多相关主题的帖子: MFC API cast CWnd hwnd 
2008-06-04 14:39



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-217609-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.218439 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved