Error upgrading from VC7.1 to VC8 C2039: 'vt' : is not a memberof 'tagVARIANT'

T

test

Hey everyone.

I'm just trying out some of our code to see if it is even possible to
think about moving to VC8.

Apart from a few minor problems in our stuff (to do with wrong for loop
scoping and deprecated function calls) most of our projects build fine.

However one small but incredibly important dll won't build.

It spits out hundreds of warnings similar to the following

c:\program files\microsoft visual studio
8\vc\atlmfc\include\atlcomcli.h(443) : error C2039: 'vt' : is not a
member of 'tagVARIANT'
c:\program files\microsoft visual studio
8\vc\platformsdk\include\oaidl.h(424) : see declaration of 'tagVARIANT'


Any ideas what could be causing them - the project builds just fine in
VC6 and VC7.1

Cheers in advance,

Argos
 
G

Guest

It is just possible that I have had a similar problem to you, if you search
for atlcomli
now you will find the post
'Visual studio 8 cannot convert project that uses atlcomcli.h'
Nick.
 
T

test

Nick said:
It is just possible that I have had a similar problem to you, if you search
for atlcomli
now you will find the post
'Visual studio 8 cannot convert project that uses atlcomcli.h'
Nick.

Thanks Nick - I'll have a look and see if I can work out what to do from
there!

Argos
 
T

test

Nick said:
It is just possible that I have had a similar problem to you, if you search
for atlcomli
now you will find the post
'Visual studio 8 cannot convert project that uses atlcomcli.h'
Nick.

Nope that wasn't it :-(

But I have found out what it was! :)

I compared the project settings with our projects that were building and
found that it had two extra macros defined

_USRDLL
__STDC__

I removed them and the project built and worked just fine.

Thanks for the help,

Argos
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top