已经包含了#include <atlcom.h> #include <comutil.h>还是报错

在WTL工程的.h中

#include <atlbase.h>
#include <atlcom.h>
#include <atlcomcli.h>
#include <atlctl.h>
#include <atlwin.h>
#include <comutil.h>

结果还是下面一堆错,为什么呢,因为你没有使用这个using namespace ATL; 加上这个下面错全部消失。

error C2061: syntax error : identifier ‘CComQIPtr‘

error C2504: ‘CWindowImpl‘ : base class undefined

error C2065: ‘CRegKey‘ : undeclared identifier

error C2660: ‘SetWindowTextW‘ : function does not take 1 arguments

error C2039: ‘SubclassWindow‘ : is not a member of ‘xxxxxx‘

时间: 2024-08-01 10:32:53

已经包含了#include <atlcom.h> #include <comutil.h>还是报错的相关文章

Visual Studio 下C#编译器在解析属性名时如果增加一个get_[您的另一个已经包含在类中属性名]的属性会报错,微软大哥这是什么鬼?

假设在在我们的vs环境新建一个类 copy以下代码,表面看好像一切都没有问题. 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel.DataAnnotations; 4 using System.ComponentModel.DataAnnotations.Schema; 5 using System.Linq; 6 using System.Text; 7 using System.

#include&lt;iostream&gt;与#include&lt;iostream.h&gt;的区别

                                     转载于祝长洋的BLOG:http://blog.sina.com.cn/s/blog_514b5f600100ayks.html                                      这两者都有什么不同呢?首先,5年前我们就开始反对把.h符号继续用在标准的头文件中.继续使用过时的规则可不是个好的方法.从功能性的角度来讲,包含了一系列模板化的I/O 类,相反地只仅仅是支持字符流.另外,输入输出流的C++标

#include &lt;winsock2.h&gt;报错的问题

#define PORT 5150 #define DATA_BUFSIZE 8192 typedef struct _SOCKET_INFORMATION { CHAR Buffer[DATA_BUFSIZE]; WSABUF DataBuf; SOCKET Socket; WSAOVERLAPPED Overlapped; DWORD BytesSEND; DWORD BytesRECV; } SOCKET_INFORMATION, * LPSOCKET_INFORMATION; DWORD

jsp的静态包含与动态包含:&lt;%@ include file=&quot;&quot; %&gt;和&lt;jsp:include page=&quot;&quot;&gt;&lt;/jsp:include&gt;区别与分析

<%@ include file="" %>是将文件原封不动的copy进现有的文件中,像是拼接好后,再编译成为servlet运行. <jsp:include page=""></jsp:include>是编译后的servlet运行到该句时,跳转到指定的jsp编译的那个servlet继续运行,然后将运行结果,copy到现在的jsp中,故包含与被包含文件都是单独运行的. 在开发过程中,我们需要正确选择使用.举个例子: 比如在工程项目中

分别应用include指令和include动作标识在一个jsp页面中包含一个文件。

hello.jsp <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+re

Irrlicht_0.1源码学习(5)—include/core/dimension2d.h、include/core/position2d.h、IUnknown.h、Keycodes.h &amp; include/IrrlichtDevice.h

因为之前的学习中有遇着引擎核心模块中dimension2d和position2d这两个头文件,这里我们先把这两个文件过一遍. 首先是include/core下的dimension2d.h,这个头文件里面定义了一个叫做dimension2d的模板类,用以包装一个二维尺寸. 该类的字段只有Width和Height两个,比较容易理解,然后根据其构造方式的多样性实现了三种不同的构造方法,再接着是一些重载的运算符,分别用于判断相等.不等以及赋值. 同样,include/core下的position2d.h

OBS---环境配置之#include &lt;D3DX10.h&gt;报错

一.先贴错误 因为这个笔记主要记录我如何整好这个OBS源码环境的,给需要的童鞋一个参考 1.1.#include <D3DX10.h>  报错 没有这个 解决方案:把2,3先解决了就水到渠成 1.2.安装DirectX报错:    Setup failed   Errors were encountered during installation of redistributeable packages  Please close all open programs and try runni

/usr/include/glib-2.0/glib/gtypes.h:34:24: fatal error: glibconfig.h: No such file or directory

cc -DDEBUG -mtune=core2 -O2 \ -onvideo nvideo.c \ -I/usr/include/atk-1.0 \ -I/usr/include/cairo \ -I/usr/include/gdk-pixbuf-2.0 \ -I/usr/include/glib-2.0 \ -I/usr/include/gtk-3.0 \ -I/usr/include/pango-1.0 \ -I/usr/include/libxml2 \ -I/usr/lib/x86_64

【Note2】用keil对工程编译时,工程中已经包含的文件会报错:cannot open source input file usb_conf.h No such file or directory

错误举例: ..\..\Libraries\STM32_USB-FS-Device_Driver\inc\usb_type.h(21): error:  #5: cannot open source input file "usb_conf.h": No such file or directory 这是因为没有设置 STM32 固件库的目录, 编译器就默认到 "Keil"根目录下的某某目录找去了.如果现在编译程序,会报错的 解决方法:引用固件库文件所在的目录需要在