Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / June 2004

Tip: Looking for answers? Try searching our database.

Lost intelisence

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
raykos - 11 Jun 2004 15:52 GMT
Hello all,
  In a Managed C++ project I added a class, "CGenClass", and then included it's
header in the Form .h.  I can create a instance of CGenClass by doing:
   CGenClass* pC = new CGenClass();
   
but when I do:
   pC->
I don't  see any members, variables,etc.  What happened to my Intelisense?

Any help appreciated....
TIA,

Ray k.
TxITGuy - 11 Jun 2004 17:26 GMT
Ray,

Intelisense frequently seems to be as picky about syntax as the C++ language itself is.  I actually take this as a good thing ... since if Intelisense quits working I go back and look for a mistake in the lines of code I added since the last time Intelisense worked.

Intelisense is also "scope sensitive".  If you are trying to use a class or struct pointer variable outside of it's scope, the members will not appear.

Also, as a variation of the above, you sometimes will have to specify the name of the class containing the pointer variable.  In your case, for example:

CForm::pC->

Ben

> Hello all,
>    In a Managed C++ project I added a class, "CGenClass", and then included it's
[quoted text clipped - 9 lines]
>
> Ray k.
sarge - 11 Jun 2004 22:04 GMT
One thing as well about intellisense. I have found sometimes when
working with multiple projects in a single solution, my .ncb file can
get corrupt. If all else fails, close out of VS and go to the project
file you are working on. Delete the .ncb file. Then, restart VS and
open the project. This will generate a new .ncb file. 9 out of ten
times it fixes the problem for me. Of course you do need to make sure
you don't have any syntax mistakes first.

I got this out of the MSDN.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.