Wim,
Thank you Wim .
When i removed 'using namespace WT' resolved the issue.
Also removing windows header may also might resolve it but we need those
headers.
So i went for removing 'using namespace WT' .
On Thu, Oct 22, 2009 at 8:03 PM, Wim Dumon <[email protected]> wrote:
> Oops, I seem to have misread your question - the confusion is in a
> windows header file, not in a Wt header file.
> Possible resolutions:
> - include windows header file before any Wt header file
> - do not use 'using namespace Wt;', or put the statement after
> inclusion of windows.h
> - do not include windows header files :)
>
> Regards,
> Wim.
>
> 2009/10/22 Wim Dumon <[email protected]>:
> > Sabir,
> >
> > Did you try to fully specify ApplicationType, as
> > 'Wt::ApplicationType'? I think that should solve it.
> >
> > Best regards,
> > Wim.
> >
> > 2009/10/22 Sabir <[email protected]>:
> >> Hello everyone,
> >>
> >> I am trying to port application developed on linux to windows
> executable.
> >> When i compile i get comile time error.
> >>
> >>
> >> 1>file1.cpp
> >>
> >> 1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objidl.h(11809)
> :
> >> error C2872: 'ApplicationType' : ambiguous symbol
> >>
> >> 1> could be 'C:\Program Files\Microsoft
> >> SDKs\Windows\v6.0A\include\objidl.h(11689) : tagApplicationType
> >> ApplicationType'
> >>
> >> 1> or 'C:\projects\wt-2.99.5\src\Wt/WGlobal(580) : Wt::ApplicationType'
> >>
> >> '
> >>
> >> when i cheked i found that objidl.h and Wt/WGlobal have an enum
> >> ApplicationType defined in both headers. Though i am not using WGlobal
> >> directly it is used by some of the headers included y me.
> >>
> >> Could any body help me to to resolve the issue.
> >>
> >> Advance thaks to everyone
> >>
> >> --
> >> With Regards,
> >> wt- user
> >>
> >>
> >>
> >> Success is mostly in the attitude. “I always felt that my greatest asset
> was
> >> not my physical ability, it was my mental ability.”
> >>
> ------------------------------------------------------------------------------
> >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> >> is the only developer event you need to attend this year. Jumpstart your
> >> developing skills, take BlackBerry mobile applications to market and
> stay
> >> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> >> http://p.sf.net/sfu/devconference
> >> _______________________________________________
> >> witty-interest mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/witty-interest
> >>
> >>
> >
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
--
With Regards,
Sabir
+91 9895365676
Success is mostly in the attitude. “I always felt that my greatest asset was
not my physical ability, it was my mental ability.”
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest