Intellisense for CLR projects - No Intellisense for e.g. System.Windows.Forms

主宰稳场 提交于 2019-12-23 20:10:54

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/2864022/intellisense-for-clr-projects-no-intellisense-for-e-g-system-windows-forms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!