本文介绍了如何在我的c ++ / cli项目上启用智能感知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用visual studio 2008和我有一个本地c + +项目加载托管的c ++ dll,但在最后一个,intellisense不再工作只为托管代码。

I am using visual studio 2008 and I have a native c++ project that loads a managed c++ dll, but on the last one, the intellisense doesn't work anymore only for the managed code.

这个项目(dll)有一个混合代码(native和managed),如果我在一个干净的行上只写::,intellisense给我的方法继承自基类,不是托管代码,例如

This project (dll) has a mixed code (native and managed) and if I write only "::" on a clean line, the intellisense gives me the methods inherits from the base class, like regular, not for the managed code, for example

array <String^>^ ContactListToChat;

我需要帮助,否则我必须失明。

I need help, otherwise I´ll have to fly blind.

推荐答案

取自一个介绍智慧历史的msdn博客:

Taken from an msdn blog explaining the history of intellisense: http://blogs.msdn.com/b/vcblog/archive/2008/02/29/intellisense-part-2-the-future.aspx

这是他解释为什么有时intellisense工作辉煌,为什么其他时候它是完全盲目的。

This is his explanation as to why sometimes intellisense works brilliantly and why other times it is completely blind.

您应该看看问题中提出的一些建议:

You should look at some of the suggestions posed in the question: How to get intellisense to reliably work in Visual Studio 2008

听起来最有可能帮助的是Jogn Richardson的回应。

The one that sounds the most likely to help is Jogn Richardson's response.

2)智能感知数据库已损坏。这发生在所有的时间。您需要关闭解决方案,删除.ncb文件,然后重新打开解决方案。我发布了我使用的宏,在这里回答另一个问题。

2) The intellisense database is corrupt. This happens ALL The time. You need to close the solution, delete the .ncb file, and then reopen the solution. I posted the macro I use for this in answer to another question here.

这篇关于如何在我的c ++ / cli项目上启用智能感知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-29 17:22