views:

160

answers:

2

I've been following two tutorials on some Visual C++ fundamentals but they all seem to lack the information on how I get the intellisense going in Visual Studio 2010.

The following code snippet is what I have

#using<mscorlib.dll>
#using<System.Windows.Forms.dll>

using namespace System::Windows::Forms;

int main()
{
    MessageBox::Show("ohai!");

    return 0;
}

I would like to be able to just write MessageBox:: and the press ctrl + space and get a nice view of the Methods and properties. But it seems like I don't get that.

Suggestions? Did I miss to include something?

Do I only get intellisense when my IDE knows the Header files?

A: 

Why are you using C++ for .NET?

Kim Johansson
1. How does this answer my Question? 2. Why not?. You can't use inline-assembly in c#, but you can in managed c++. That's one reason.
Filip Ekberg
+1  A: 

VS2010 does not currently support IntelliSense in C++/CLI as reported on the Visual C++ Team Blog.

Visual Assist is a commercial VS2010 extension that you may find useful in this regard.

See also this question.

sean e

related questions