locked
error: IntelliSense: 'Unavailable for C++/CLI' RRS feed

  • Question

  • I'm using Visual C++ 2010 but the IntelliSense doesn't work.

    Whenever I use the arrow operator(-> or ::), I get the following error displayed on status bar:

    IntelliSense: 'Unavailable for C++/CLI'

    Please Help, I think some settings must have changed since it used to work before.

    Note:

    I've also have Visual C++ 2008 installed and the IntelliSense option works well there.


    Sameer Thigale
    Sunday, November 7, 2010 11:28 AM

Answers

  • If you don't mind paying a bit (and you're not using VC++ Express), Visual Assist X adds IntelliSense to C++/CLI in VC++ 2010.
    • Marked as answer by Jesse Jiang Friday, November 12, 2010 2:50 AM
    Monday, November 8, 2010 7:07 PM
  • To create a windows forms application using C++, you have to select the CLR project.

    And C++/CLR does not support intellisense in VS 2010.

    So you either use C# to create a windows forms project or you can use VS2008 to create a windows forms project using C++/CLI.

     


    «_Superman_»
    Microsoft MVP (Visual C++)
    • Marked as answer by Jesse Jiang Friday, November 12, 2010 2:50 AM
    Monday, November 8, 2010 4:26 PM

All replies

  • The error message means it: Intellisense isn't available for C++/CLI; it is available for native C++ and C#. 

    I think your project must have one of the /CLR options set in Configuration Properties/C++/Common Language Runtime Support.  Since you are trying to use -> and ::, I assume you intend to be writing native C++.

    You will need to turn /CLR off by changing the setting to No Common Language RunTime Support, but there may be some other things which need changing too.


    Answering policy: see profile.
    Sunday, November 7, 2010 11:41 AM
  • For now, there is no intellisense support for C++/CLI projects in VS2010.

     


    «_Superman_»
    Microsoft MVP (Visual C++)
    Sunday, November 7, 2010 2:40 PM
  • From Breaking Changes in Visual C++:

    "Specifically for Visual Studio 2010, IntelliSense does not work for C++/CLI code or attributes, Find All References does not work for local variables, and Code Model does not retrieve type names from imported assemblies or resolve types to their fully qualified names."
    Monday, November 8, 2010 3:26 AM
  • Then,What to do? Cause I'm new to C++ I don't know most of it. IntelliSense help in a better way to learn.


    Sameer Thigale
    Monday, November 8, 2010 7:10 AM
  • Your best course of action is to start a new project for your code, making sure that it is NOT a CLR project, and discard the old one.


    Answering policy: see profile.
    Monday, November 8, 2010 10:32 AM
  • Then how do I make a windows form application?
    Sameer Thigale
    Monday, November 8, 2010 4:19 PM
  • To create a windows forms application using C++, you have to select the CLR project.

    And C++/CLR does not support intellisense in VS 2010.

    So you either use C# to create a windows forms project or you can use VS2008 to create a windows forms project using C++/CLI.

     


    «_Superman_»
    Microsoft MVP (Visual C++)
    • Marked as answer by Jesse Jiang Friday, November 12, 2010 2:50 AM
    Monday, November 8, 2010 4:26 PM
  • Then how do I make a windows form application?
    Use C# if that is the sole motivation.
    Monday, November 8, 2010 5:42 PM
  • If you don't mind paying a bit (and you're not using VC++ Express), Visual Assist X adds IntelliSense to C++/CLI in VC++ 2010.
    • Marked as answer by Jesse Jiang Friday, November 12, 2010 2:50 AM
    Monday, November 8, 2010 7:07 PM
  • I just upgraded to VS2010 and discovered the same issue.  It's extremely disappointing, to have Microsoft endorse the requirement of spending $250 on third party software just to maintain functionality that was part of VS2008 but has been ripped out of VS2010. 

     

    • Proposed as answer by oxyrichguy Monday, December 12, 2011 12:14 PM
    Thursday, February 3, 2011 11:19 PM
  • Im getting so sick of micro$hat treating it's paying customers like garbage. It's funny how they are still able to get away with it, with all the powerful open source alternatives out there. This is why such a large number of folks pirate your software. Why in god's name would anyone want to spend hundreds of dollars on buggy software that has advanced and important features gutted out? Eff you micro$hat, eff you in your effin aces.
    • Proposed as answer by Microshat Friday, May 25, 2012 2:03 AM
    Friday, May 25, 2012 2:02 AM
  • Im getting so sick of micro$hat treating it's paying customers like garbage. It's funny how they are still able to get away with it, with all the powerful open source alternatives out there. This is why such a large number of folks pirate your software. Why in god's name would anyone want to spend hundreds of dollars on buggy software that has advanced and important features gutted out? Eff you micro$hat, eff you in your effin aces.

    ha ^_^ i hear ya..i get free access to the latest visual studio thru college and i still try to avoid it like the plague. intellisense is a joke anyway..case in point (op's issue)..all its good for is import resolution >_<

    edit: looks like a microsoft employee marked your reply as abusive lmfao..i dont think they like having their character flaws pointed out


    Friday, May 25, 2012 5:56 AM