gdi-CreateDC 编译检查出错

问题描述

CreateDC 编译检查出错

环境:Eclipse + CDT + Mingw
欲做一个截图程序,但是
CreateDC("DISPLAY", NULL, NULL, NULL);
Eclipse在这一行编译检查即报错: Invalid arguments ' Candidates are: ? CreateDCA(?, ?, ?, const _devicemodeA ) '
还没等到编译呢,开发环境在这一行就给显示个叉。
函数原型为:WINGDIAPI HDC WINAPI CreateDCA(LPCSTR,LPCSTR,LPCSTR,const DEVMODEA
);
(LPCSTR 就是 const char* 的 typedef)
百思不得其解,Google和百度都不好使,搜不到,好呆人家的错误都在编译链接上,我这还没链呢就不行了。。望大神能指条明路。

时间: 2024-10-25 22:19:25

gdi-CreateDC 编译检查出错的相关文章

visual studio-这个c程序有什么问题啊?编译没检查出错,但运行就崩溃了

问题描述 这个c程序有什么问题啊?编译没检查出错,但运行就崩溃了 #include void delspace(char *); int main(void) { char *ptr = " asd as,vs aw"; delspace(ptr); puts(ptr); } void delspace(char *ps) { char *pt = ps; while (*ps != '') { if (*ps != ' ') { *pt = *ps; pt++; } ps++; }

mfc 的出错-Debug Assertion failed! 编译提示出错

问题描述 Debug Assertion failed! 编译提示出错 当程序编译时的出错信息提示: Debug Assertion failed! Program: D:rgribintest.exe File:afxcoll.inl Line:376 在调试时的出错提示: First-chance exception in al.exe (MFC42D.DLL): 0xC0000005: Access Violation. First-chance exception in al.exe (

ubuntu-Linux 下编译C出错(windows编译正常)

问题描述 Linux 下编译C出错(windows编译正常) Ubuntu 15 gcc version 5.2.1 错误: scritpt.hpp下是一个 命名空间 namespace script{ .... int setData( PyObject * pObj, Vector4 & rVal, const char * varName = "" ); int setData( PyObject * pObj, Matrix & rVal, const char

zlib-LAMP环境搭建 编译PHP出错

问题描述 LAMP环境搭建 编译PHP出错 编译命令:./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql 错误信息: configure: error: Try adding --with-zlib-dir= . Please check config.log for more informatio 添加--with-zlib-dir之后

visual studio-用VS2005新建的MFC智能设备应用程序空白项目,为什么编译会出错?请大神解答

问题描述 用VS2005新建的MFC智能设备应用程序空白项目,为什么编译会出错?请大神解答 1>------ 已启动生成: 项目: 0001, 配置: Debug HPC-3000 (ARMV4I) ------ 1>正在编译... 1>stdafx.cpp 1>C:Program Files (x86)Windows CE Toolswce600HPC-3000includeARMV4Imalloc.h(45) : error C2143: syntax error : miss

linux 并行-Linux下MPI+OpenMP程序编译运行出错

问题描述 Linux下MPI+OpenMP程序编译运行出错 如题,错误提示如下: [node65:03787] *** Process received signal *** [node65:03787] Signal: Segmentation fault (11) [node65:03787] Signal code: Address not mapped (1) [node65:03787] Failing at address: 0x44000098 [node65:03787] [ 0

openwrt编译时出错 求高手指导

问题描述 openwrt编译时出错 求高手指导 http://mirror2.openwrt.org/sources/8145d4dd9b46face26121f27ad60cc1mkdir -p /home/gxy/openwrt/trunk/dl --2015-11-29 19:50:40-- http://mirror2.openwrt.org/sources/8145d4dd9b46face26121f27ad60cc1c Resolving mirror2.openwrt.org (m

为什么需要标示符,求大神。在第三行代码,编译时出错。

问题描述 为什么需要标示符,求大神.在第三行代码,编译时出错. class Point{ double x,y,z; Point(double_x,double_y,double_z ) { x=_x; y=_y; z=_z; } void setX(double _x){ x=_x; } void setY(double _y){ y=_y; } void setZ(double_z){ z=_z; } double getDistance(Point P){ return(x-p.x)*(x

linux 开发环境搭建-ncurses-5.9编译make出错,怎么办?

问题描述 ncurses-5.9编译make出错,怎么办? 错误提示如下: In file included from ../ncurses/curses.priv.h:283:0, from ../ncurses/lib_gen.c:19: _2305.c:835:15: error: expected ')' before 'int' ../include/curses.h:1594:56: note: in definition of macro 'mouse_trafo' #define