Re: Can't make a COM Object external

From: Karl Heinz Buchegger (kbuchegg_at_gascad.at)
Date: 01/19/05


Date: Wed, 19 Jan 2005 15:45:26 +0100

Stefan wrote:
>
> " Globals.h(127): error C2143: syntax error : missing ';' before '<' "
> Line 127 is: "extern CComPtr<IHTMLDocument2> spDoc;"

You need additional includes in Globals.h.
The compiler has no idea what a CComPtr is.
Include the header file which declares that and
you should be fine.

-- 
Karl Heinz Buchegger
kbuchegg@gascad.at


Relevant Pages

  • Re: How do I inhibit warning 528?
    ... >> in the header file, then each file that needs it declares ... compiler will type-check no matter how you initialize it. ...
    (comp.lang.c)
  • Re: How to Speed up Cellular Automata
    ... > it is evaluated at least in LispWorks. ... And foo can't be declared as fixnum either. ... I've added integer declares and "of-type ... > the the compiler produces more straightforward assembler code. ...
    (comp.lang.lisp)
  • Re: header files
    ... As all code can be written in the header file ... > void foo() ... > compiler tries to compile main.c it eventually reaches the line ... > the compiler has never heared about a function called printf(). ...
    (alt.comp.lang.learn.c-cpp)
  • Re: include file question
    ... Where did you read that #pragma once is obsolete? ... because it suggests that what you need is some kind of weird compiler hack to make your ... inside the header file to prevent multiple execution of the contents. ... documentation about Objective C, which is a language which is NOT the C++ language, has ...
    (microsoft.public.vc.mfc)
  • Re: header files
    ... As all code can be written in the header file ... void foo() ... So when the compiler compiles ... the compiler has never heared about a function called printf(). ...
    (alt.comp.lang.learn.c-cpp)