473,473 Members | 2,036 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Disable a VC7 error

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 --

Jul 23 '05 #1
1 1187
ge*********@gmail.com 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?
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Alphonse Giambrone | last post by:
I am trying to enable/disable a requiredfieldvalidator on the client side and am generating an error. I had found some documentation on validation which states that I should be able to...
4
by: Paul T. RONG | last post by:
Dear All, I add two new tables to the database and then the disable shift key codes don't work. These two new tables are actually created by two queries, and only these two are in the front end,...
16
by: MLH | last post by:
If I give someone a runtime app, they can open the database window by pressing the F-11 key. How to prevent???
6
by: | last post by:
hi, how to disable the controls in page? thanks For each myControl in Page.Controls 'want to disable myControl? Next
3
by: John K | last post by:
I am trying to eliminate the capability of displaying the details of a web service by disabling WSDL generation in the web.config file. I have made the following changes to the web.config: ...
2
by: Yansky | last post by:
Hi, I was just wondering if it is possible to disable script debugging in IE from within a script. I know I can disable it manually through the IE tools menu, but is it possible to disable it from...
37
by: Vince C. | last post by:
Hi all. I've installed Bloodshed Dev-C++ on a Windows 2000 SP4 machine. I'm using MinGW 3.4.2. I'd like to temporarily disable standard functions to write to stderr, i.e. for instance...
3
by: Pietro | last post by:
Hi all, First of all I'd like to thank you very very much ,as finally after many years of searching,I could find a code to disable/enable the shift key,but actually i cannot use the code as I'm...
8
by: freeskier | last post by:
I have been using the following code to cycle through a subform and disable all textboxes on a form. If a textbox on the form has the focus when this is run I get error "can't disable a control when...
1
by: umesh049 | last post by:
Hello A check constraint SYS_C0011712 is system given name to the constraint but when i want to disable it. i can' t it please give me some solution. thanks SQL> SELECT CONSTRAINT_NAME,...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.