有时使用GetConsoleWindow()找控制台窗口的句柄时,会提示出错信息:

'GetConsoleWindow' was not declared in this scope.

解决的方法有:

要么在文件头写上:#define _WIN32_WINNT 0x0500

要么在文件头写上:wincon.h

要么在文件头写上:extern "C" WINBASEAPI HWND WINAPI GetConsoleWindow ();

转载于:https://blog.51cto.com/whatever957/1627978

GetConsoleWindow was not declared in this scope相关推荐

  1. 【C++】mingw32-make+cmake:error: ‘nullptr‘ was not declared in this scope解决方法

    ###问题 使用cmake成功(Configuring done Generating done)后,在cmd终端中执行 mingw32-make报错: error: 'nullptr' was no ...

  2. ndk error: malloc was not declared in this scope

    error: 'malloc' was not declared in this scope 解决方法: NDK_TOOLCHAIN_VERSION=4.8 APP_CPPFLAGS += -frtt ...

  3. 'imread' was not declared in this scope

    在opencv3中,会报这个异常: 'imread' was not declared in this scope 解决方法: #include <opencv2/core/core.hpp&g ...

  4. 'htons' was not declared in this scope 解决

    'htons' was not declared in this scope ndk 如果是在ndk下,引用如下即可: /* Must include in android ndk env */ #i ...

  5. 解决Cygwin编译cocos2dx 遇到的 error: 'UINT64_C' was not declared in this scope 问题

    环境工具:Win10.VS2013.cocos2d-x-2.2.6.Cygwin.ADT 问题来源:写了一个小游戏,VS2013上运行成功,就尝试着打包apk,项目导入到ADT里面,添加了cocos2 ...

  6. 调用ffmpeg库编译时出现common.h:175:47: error: 'UINT64_C' was not declared in this scope

    解决办法 出现错误:jni/ffmpeg/libavutil/common.h:175:47: error: 'UINT64_C' was not declared in this scope 解决: ...

  7. ‘close’ was not declared in this scope

    'close' was not declared in this scope 'read' was not declared in this scope 'sysconf' was not decla ...

  8. 文档源代码opencv 中的错误error: ‘SurfFeatureDetector’ was not declared in this scope

    本篇文章朋友在青岛游玩的时候突然想到的...最近就有想写几篇关于文档源代码的文章,所以回家到之后就奋笔疾书的写出来发布了     这是文档中的源代码,:但是译编的时候会有一下错误:     error ...

  9. was not declared in this scope

    "was not declared in this scope"是一个错误信息,在编译的时候会遇到.其含义为标识符在其出现的地方是未被定义的. 出现该错误的时候,会同时把未定义的变 ...

最新文章

  1. XML 新手最佳入门教程
  2. Notification的功能和用法 加薪通知
  3. Python入门之三元表达式\列表推导式\生成器表达式\递归匿名函数\内置函数
  4. druid 多数据源_Spring Boot2 系列教程(二十二)整合 MyBatis 多数据源
  5. DELPHIER,正转向PYTHON了
  6. @OneToOne or @ManyToOne on references an unknown entity:
  7. java解码acc音频文件_g711a音频文件转aac格式
  8. 在线词云图生成(以WordArt为例)
  9. setprecision、setw、fixed详解
  10. 18个Python高效编程技巧!
  11. 连玉君链接-Stata连享会
  12. linux系统fasta程序,快速计算fasta序列长度的方法
  13. 如何让孩子算20以内的加法更快
  14. 织梦dede文章列表调用标签的用法和规则
  15. Ubuntu20.04 tcp调试工具mNetAssist安装
  16. 赔 1100 万美元!谷歌招聘年龄歧视
  17. 【总结】利用AWS搭建混合云的架构
  18. 弘玑创始人兼CEO高煜光获得2022上海城市数字化转型“领军先锋”决赛一等奖
  19. aida64怎么测试cpu稳定性_aida64 看系统稳定性怎么判断稳定还是不稳定?
  20. 第11周 oj 查闰年

热门文章

  1. 计算机组成原理实验认识多思网络虚拟实验系统_1000MW超超临界火电机组虚拟仿真平台...
  2. delphi 查找指定后缀名的函数_Excel明星函数系列2:掌握这5类VLOOKUP查询方法,搞定查询...
  3. php中ini_get,关于ini_get php手册的例子?
  4. linux essid 异常,关于BSSID,ESSID讨论
  5. c++ 正态分布如何根据x求y_knn实战:如何对手写数字进行识别?
  6. idea 拉取gitlab分支项目_如何删除gitlab上的文件夹?
  7. 两个JS文件使用全局变量并互相调用funciton,JS判断checkbox状态,延迟执行JS语句
  8. python object类_Python中一切皆对象,这个对象究竟是什么?
  9. 16查看走线长度_糟糕!丝印放到表层走线上面啦
  10. mongodb ssl java_MongoDB自签名SSL连接:SSL对等证书验证失败