.cpp文件的组合框Scopes和Function in Scope在VS2008 sp2中不起作用.知道为什么这些组合
The combo boxes Scopes and Function in Scope, for a .cpp file are not working in VS2008 sp2. Any idea why these combo boxes are not working?
.cpp文件编译正常,但Scopes
组合框只显示该文件中存在的50多个类和结构中的3个。Functions in Scope
组合框不显示这3个类的任何内容。
我在另一个项目(相同的解决方案)中有一个不同版本的相同.cpp文件,其中两个组合框都能完美工作。
有人知道问题出在哪里吗?
编辑:对于我用鼠标左键单击的绝大多数类成员函数,Scope combo box
一直显示"未知范围"。
第1版:这是我面临的两个组合框问题的一个非常简化的版本:
class A
{
int i;
public:
A();
A(int);
A(short);
};
// VS2008 - If I click with the left mouse button in between the brackets below I get
// in the 2 combo boxes boxes the following results :
A::A() : i(10) {} // A and A()
A::A(short s) : i(s) {} // A and A(short)
A::A(int k) : i(k) {} // (Unknown Scope)
// Why the unknown scope ?
第3版:这是VS2008中的一个错误。在VS210中不会发生这种情况
Intellisense并不是Visual Studio for C++中最稳定的功能。。。
您可以尝试删除项目的.ncb文件(该文件与项目的.sln文件同名),该文件包含intellisense数据库。当它丢失时,VS从头开始重建它,一切都应该恢复正常。
这是VS2008中的一个错误。VS2010不再有!!
相关文章:
- 我的神经网络不起作用 [XOR 问题]
- 在C++程序中输入的文本文件将不起作用,除非文本被复制和粘贴
- C++映射:具有自定义类的运算符[]不起作用(总是返回0)
- C++为什么尽管我调用了void函数,它却不起作用
- 为什么在保护模式下继承升级不起作用
- 循环在计数器中不起作用
- 在其他文件中创建类时在 c++ 项目中不起作用
- Visual studio代码重构似乎不起作用(例如,重命名符号-f2)
- 为什么二进制搜索在我的测试中不起作用
- 我的代码中有错误吗?使用BGI图形的C++代码对我不起作用
- 为什么 const std::p air<K,V>& 在 std::map 上基于范围的 for 循环不起作用?
- 带有指定长度字符* 参数的 std::regex_search 在 VS2017 中不起作用?
- 组合正则表达式部分使用 | 不起作用的 C++
- 组合"%"和可选后缀时,自动属性传播有时不起作用
- 重载运算符 "=" 和 "+" 组合在 C++ 中不起作用
- C++:为什么这个 sync() 在这个组合模式中不起作用?
- 我的聚合、关联和组合关系在这个C++程序中不起作用
- .cpp文件的组合框Scopes和Function in Scope在VS2008 sp2中不起作用.知道为什么这些组合
- 为什么strtol和strtok的组合不起作用
- QString和stdstring组合在std::编译错误中不起作用