Disable a VC7 error

G

gein.julien

Hi,

I'm currently working with a rather old library which declares a member
of a parent class as private while it should be protected. The library
then provides macros for the child classes that internally refer to
this private member (I'm not making a wrong use of the library). I was
working with VC6 before and this problem did not show up (the compiler
had a wrong behaviour regarding private static members). Now that I'm
working with VC7, I need to get rid of this problem...
I cannot change the header file where the private member is declared,
so I was wondering if there is a mecanism to hack the compiler
behaviour (though I admit it's bad...)

Any help appreciated !
-- B --
 
W

Wiseguy

(e-mail address removed) scribbled on the stall wall:
Hi,

I'm currently working with a rather old library which declares a member
of a parent class as private while it should be protected. The library
then provides macros for the child classes that internally refer to
this private member (I'm not making a wrong use of the library). I was
working with VC6 before and this problem did not show up (the compiler
had a wrong behaviour regarding private static members). Now that I'm
working with VC7, I need to get rid of this problem...
I cannot change the header file where the private member is declared,
so I was wondering if there is a mecanism to hack the compiler
behaviour (though I admit it's bad...)

Any help appreciated !
-- B --

there is a #pragma directive that disables certain compatibility
warning...I cannot remember the specifics. Check your docs...It is
a legal copy of CV7, right?
 

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top