偶然发现一个奇怪的问题,VS2015 Enterprise版,添加类时,如果类名为ABC,VS弹出如下对话框,提示:“CodeModel操作失败。可能无法访问标记数据库”。但如果换一个类名则正常。这是VS2015的BUG?哪位安装相同VS版本的试试,是否也是这样?
解决方案 »
- 新手,使用流加载内存中的HTML文件的问题。
- VC中怎么将数组数据导出到记事本
- 求助:如何调用BHO dll(在.exe中)
- 当鼠标移开时,如何去掉CListCtrl的自动的框选多行(造成多行有阴影背景,很难看)?
- 为什么我用Invalidate()函数之后,屏幕狂闪个不停?
- 关于CFileDialog使用OFN_ALLOWMULTISELECT时遇到的问题
- 日期控件,为什么GetStatus()返回值都不正确
- 类似vb启动图片问题
- 能在容器(比如说是对话框或静态框)中动态的创建一个视图(CScrollView)吗?
- 求一VC画图程序的源代码
- FindResource 的问题
- MFC编程,求助大大们,如何实现自定义控件列表
rename(“OldName”, “NewName”)……The rename attribute
rename("OldName","NewName")OldNameOld name in the type libraryNewNameName to be used instead of the old nameThe rename attribute is used to work around name collision problems. If this attribute is specified, the compiler replaces all occurrences of OldName in a type library with the user-supplied NewName in the resulting header files.This attribute can be used when a name in the type library coincides with a macro definition in the system header files. If this situation is not resolved, then various syntax errors will be generated, such as C2059 and C2061.Note The replacement is for a name used in the type library, not for a name used in the resulting header file.Here is an example: Suppose a property named MyParent exists in a type library, and a macro GetMyParent is defined in a header file and used before #import. Since GetMyParent is the default name of a wrapper function for the error-handling get property, a name collision will occur. To work around the problem, use the following attribute in the #import statement:rename(“MyParent”,”MyParentX”)which renames the name MyParent in the type library. An attempt to rename the GetMyParent wrapper name will fail:rename(“GetMyParent”,”GetMyParentX”)This is because the name GetMyParent only occurs in the resulting type library header file.