标题:关于WinAPI的问题
取消只看楼主
cqf00
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2013-6-17
结帖率:100%
 问题点数:0 回复次数:1 
关于WinAPI的问题
程序代码:
#include <stdio.h>
#include <windows.h>

int main()
{
    char* pWindowName = "e.exe";

    HWND hWND = NULL;

    hWND = FindWindow(NULL, pWindowName);
    if(NULL == hWND)
    {
        printf("Error : %d\n", GetLastError());
        return 0;
    }

    printf("ok\n");
    return 0;
}


运行结果:
Error : 126
Press any key to continue

这个问题怎么解决?
2013-06-17 12:37
cqf00
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2013-6-17
得分:0 
问题解决了
https://bbs.bccn.net/thread-415374-1-1.html

版主很热心,还是谢谢你
2013-06-17 14:43



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




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

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