473,320 Members | 2,052 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Why does Visual Studio C++ show private members in the IDE ???

Maybe someone could explain something that has been bothering me.

I noticed that when I create a class library, and then access the class
instance's member variables (from client), using the Visual Studio IDE (any
version) -> operator, all the private members are displayed.

Why is this so? I must assume that their is some rational reason why this is
a feature. I have tried to find a setting in the IDE to turn this off but I
can't seem to find the setting, so I am assuming this is the way it is
supposed to be.

What am I not understanding?

Thanks,

Russell Mangel
Las Vegas, NV
PS I have been wanting to ask this question for years, but I have never
asked.

Mar 8 '06 #1
2 1566
> I noticed that when I create a class library, and then access the class
instance's member variables (from client), using the Visual Studio IDE
(any version) -> operator, all the private members are displayed. PS I have been wanting to ask this question for years, but I have never
asked.


given that anticipation, you will probably find my answer dissapointing.
Intellisense is pretty dumb. It will parse any header it can find to get
type information,
and then tries to show you as much as possible. that way it also works
inside the class where
you have accss to those variables.

you'll notice that it also show you classes and functions that you did not
actually include.
apart from local and global variables in you code, there is no link between
what intellisense shows you
and which functions you really have access to.

--

Kind regards,
Bruno.
br**********************@hotmail.com
Remove only "_nos_pam"
Mar 8 '06 #2
>> Russell Wrote:
I noticed that when I create a class library, and then access the class
instance's member variables (from client), using the Visual Studio IDE
(any version) -> operator, all the private members are displayed.

PS I have been wanting to ask this question for years, but I have never
asked.


given that anticipation, you will probably find my answer dissapointing.
Intellisense is pretty dumb. It will parse any header it can find to get
type information,
and then tries to show you as much as possible. that way it also works
inside the class where
you have accss to those variables.


Hmmmmm! I see.
Well at least now I can sleep better at night. This has been bugging me for
years, and I finally got the courage up to ask a "Potentially dumb"
question.

Thanks.
Russell Mangel
Las Vegas NV
Mar 8 '06 #3

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

Similar topics

7
by: Jonas | last post by:
This works fine in Win XP but does not work at all in Win 98. Private WithEvents objIExplorer As InternetExplorer I have to do it like this to get it to work in Win 98 Dim objIExplorer As...
30
by: Cowboy \(Gregory A. Beamer\) | last post by:
There seems to be a lot of confusion on the versions of Visual Studio 2005. My latest blog entry covers the different versions: Main URL:...
5
by: Genboy | last post by:
My "VIS" Website, which is a C# site created in VS.NET, Framework 1.1, is no longer compiling for me via the command line. As I have done 600 times in the last year and a half, I can compile to...
5
by: tindog | last post by:
I seem to be caught in a bit of a conundrum with C#. First of all getting books on VS 2003.net then VS 2005 comes out and further a book I have bought to just learn just the language C# (in 21...
0
by: Ajay Sudan | last post by:
Visual Studio Team System chat 12/1 and 12/2 December 1, 2004 5:30 PM - 6:30 PM PST December 2, 2004 8:00 AM - 9:00 AM PST Join members of the Visual Studio Team System team to talk about the...
6
by: Tom McL. | last post by:
I'm trying to move a program that was designed using Visual Studio 2003 and (Visual Basic) into Visual Studio 2005. When it runs I get the following warning in the Error List Window and I'm not...
1
by: mfunkmann | last post by:
Hi, I recently got an error and I don't know how to fix it: Error 1 'System.Data.DataColumn' does not contain a definition for 'Windows' C:\c#\CsharpPRO\Form1.Designer.cs 304 77 CsharpPRO I...
8
by: WT | last post by:
Is it normal that Visual Studio sets the PreInit handler for a Page from the OnInit code ? No chance to fire it as OnPreInit is run befor OnInit. ??? CS
1
by: Aegixx | last post by:
Ok, extremely wierd situation here: (I'll post the code below, after the explanation) I've got a Windows application (.NET 3.5) that has a single Form with a DataGridView embedded. The user...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.