Objidl.h problem

From: Steve Strommen (sjstrommen_at_wi.rr.com)
Date: 09/04/04


Date: Sat, 4 Sep 2004 16:23:09 -0500

Every time I add a particular form to my VS 2003 C++ project, the project
can no longer compile. The error message indicates an ambiguity because
IDataObj is defined both in System::Windows::Forms and also in objdl.h.

I have no idea why objidl.h is being included in my project, but it must
have something to do with the objects in my form other than controls. There
are no COM objects involved.

The problem line in objidl.h is line 7408:

typedef /* [unique] */ IDataObject *LPDATAOBJECT;

Can anyone help me get past this compiler error? And maybe explain how
objidl.h gets included in my project?

Thanks for any help.



Relevant Pages

  • Re: Objidl.h problem
    ... I had previously commented that line out while researching a ... > can no longer compile. ... The error message indicates an ambiguity because ... > have something to do with the objects in my form other than controls. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Comparing more than one bits?
    ... '=' that uses the two operand types and produces a boolean which is ... ambiguous - although you aren't getting the right error message ... unsigned=signed overload, so there's no ambiguity. ... DOULOS - Developing Design Know-how ...
    (comp.lang.vhdl)
  • Re: Is this legal?
    ... Can you provide the text of the error message? ... Name 'foobar' at is an ambiguous reference to 'foobar' from ... I know that there have been some hiccups with handling ambiguity properly, so you may have run into a bug which was fixed in 4.3 or newer. ...
    (comp.lang.fortran)
  • Re: Is this legal?
    ... Can you provide the text of the error message? ... Name 'foobar' at is an ambiguous reference to 'foobar' from ... with handling ambiguity properly, ...
    (comp.lang.fortran)