如何在我的 c++/cli 项目上启用智能感知?
我正在使用 Visual Studio 2008,并且有一个加载托管 C++ DLL 的本机 C++ 项目,但在最后一个项目中,智能感知不再仅适用于托管代码。
这个项目(dll)有一个混合代码(本机和托管),如果我在干净的行上只写“::”,智能感知会给我从基类继承的方法,就像常规的一样,不适用于托管代码,对于例如
array <String^>^ ContactListToChat;
我需要帮助,否则我将不得不盲目飞行。
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.
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
摘自解释智能感知历史的 msdn 博客:http://blogs.msdn.com/b/vcblog/archive/2008/02/29/intellisense-part-2-the-future.aspx
这是他对为什么智能感知有时表现出色而有时却完全盲目的解释。
您应该查看问题中提出的一些建议:如何让 IntelliSense 在 Visual Studio 2008 中可靠地工作
听起来最有帮助的是 Jogn Richardson 的回答。
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
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
The one that sounds the most likely to help is Jogn Richardson's response.