Code completion troubles with MSVC 2003

This is a discussion on Code completion troubles with MSVC 2003 within the Windows Programming forums, part of the Platform Specific Boards category; I went through some code and changed some structure member names in my source code. Now when I try to ...

  1. #1
    Registered User Bajanine's Avatar
    Join Date
    Dec 2001
    Location
    The most peaks over 10,000 feet!
    Posts
    396

    Code completion troubles with MSVC 2003

    I went through some code and changed some structure member names in my source code. Now when I try to use the code completion feature it doesn't give me the new names only the old ones. I tried 'Build | Clean Solution' but that didn't fix it. Anyone who uses Visual Studio 2003 have any ideas on how to fix this?
    Favorite Quote:

    >For that reason someone invented C++.
    BLASPHEMY! Begone from my C board, you foul lover of objects, before the gods of C cast you into the void as punishment for your weakness! There is no penance for saying such things in my presence. You are henceforth excommunicated. Never return to this house, filthy heretic!



  2. #2
    Registered User Bajanine's Avatar
    Join Date
    Dec 2001
    Location
    The most peaks over 10,000 feet!
    Posts
    396
    Well, I finally got a clue and just created a new project, added all the source files to the project hit rebuild and everything works now.
    Favorite Quote:

    >For that reason someone invented C++.
    BLASPHEMY! Begone from my C board, you foul lover of objects, before the gods of C cast you into the void as punishment for your weakness! There is no penance for saying such things in my presence. You are henceforth excommunicated. Never return to this house, filthy heretic!



  3. #3
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    IntelliSense is known to be slow and/or half broken in 2003. Also half the time the function browser doesn't work which is very annoying.

    In MSVS 2005 both IntelliSense and the function browser are a bit iffy as well.

  4. #4
    Registered User Bajanine's Avatar
    Join Date
    Dec 2001
    Location
    The most peaks over 10,000 feet!
    Posts
    396
    I just figured out all I had to do was delete the *.ncb file from the project to fix the problem. When I started having trouble the file was over 1700KB after deleting and reloading the project it is only 331KB.
    Favorite Quote:

    >For that reason someone invented C++.
    BLASPHEMY! Begone from my C board, you foul lover of objects, before the gods of C cast you into the void as punishment for your weakness! There is no penance for saying such things in my presence. You are henceforth excommunicated. Never return to this house, filthy heretic!



  5. #5
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,680
    Been using Visual Assist for years now - work's good.

    www.wholetomato.com

    gg

  6. #6
    Codebot
    Join Date
    Jun 2004
    Location
    Toronto
    Posts
    195
    Quote Originally Posted by Codeplug View Post
    Been using Visual Assist for years now - work's good.

    www.wholetomato.com

    gg
    VisualAssistX (VAX) is a nice tool but it also has its limitations. because its so thurough with its indexing, it has a hard time parsing files over 8000 lines of code. It will often fail when it reaches that size. not only that, I wouldn't really suggest it when using the .NET framework. It failed on me many times when I coded large C++ programs that use the .NET framework.

    Take it with a grain of salt, but it still is the best tool out there, IMO.
    Founder and avid member of the Internationsl Typo Associateion

  7. #7
    CSharpener vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,484
    it has a hard time parsing files over 8000 lines of code.
    just another reason to avoid such huge files
    The first 90% of a project takes 90% of the time,
    the last 10% takes the other 90% of the time.

  8. #8
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by vart View Post
    just another reason to avoid such huge files
    Not always your choice tho' - but I agree that no one should WRITE such large files.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  9. #9
    Codebot
    Join Date
    Jun 2004
    Location
    Toronto
    Posts
    195
    I dont make it my intention to work with files that big, I'm sort of forced to. But I agree, smaller files are easier on VAX and your brain.
    Founder and avid member of the Internationsl Typo Associateion

  10. #10
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    Any time you have intellisense problems that just won't go away or you get the error that your project cannot open such and such NCB file and thus class browser will not be available you should delete the NCB and restart MSVS.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Explain this C code in english
    By soadlink in forum C Programming
    Replies: 16
    Last Post: 08-31-2006, 12:48 AM
  2. FILES in WinAPI
    By Garfield in forum Windows Programming
    Replies: 46
    Last Post: 10-02-2003, 06:51 PM
  3. Overlapped I/O and Completion Port :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 0
    Last Post: 10-30-2002, 04:14 PM
  4. Replies: 4
    Last Post: 01-15-2002, 11:04 PM
  5. Borland to MSVC, code problems
    By Eber Kain in forum C++ Programming
    Replies: 1
    Last Post: 10-19-2001, 05:35 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21