就是写程序时自动出现的类中的函数、成员以及写函数时出现的参数表。这些东西非常方便,也非常有用。不过有的时候它不起作用。(排除名称不对的情况。)刚刚还碰上一个,明明2行前还能用呢,突然就不行了,就算强制让它显示parameter info 也没用。于是只好自己打,编译,运行都是好好的。(明明也没有用错)我想知道具体什么情况下VC的自动完成功能会不起作用???谢谢。
解决方案 »
- 菜单项禁用的问题
- 无法找到组件,请帮忙
- 非模对话框 Html资源销毁问题
- 请问VC使用TeeChart的问题(如何更改Point类型曲线的点样式)?
- ListCtrl控件设计思路问题...
- 树视控件隐藏状态下能取到值吗
- 求教远程线程注入问题
- 端午节求助 !做出来了请大家吃粽子:)
- CEditView,怎样使得view已开始就不可以输入,mfc建造的editview
- 烦人的空记录异常问题
- 在VC6中这种强制转换都能成功:将const int *p转换为一个int *p,但是在我的WinXP中不能运行可执行文件
- 真奇怪 我的一个程序运行后,windows2000就不能关闭,重启了,我估计是什么权限问题,但都有什么可能会出现这种现象呢
这个自动提示当然好处多多,但盖茨却不能忘了作大量的慈善募捐;当是时,他肯定得把什么自动提示全放在脑后才行。不是吗?
{
// TODO: Add your message handler code here
CMenu menu;
menu.LoadMenu(IDR_MENU1); CMenu* pmenu=menu.GetSubMenu(0);
if(nSelect == -1)
{
pmenu->EnableMenuItem(ID_CONTEXT_EDIT, MF_DISABLED | MF_GRAYED);
pmenu->EnableMenuItem(ID_CONTEXT_DELETE, MF_DISABLED | MF_GRAYED);
}
pmenu->TrackPopupMenu(TPM_LEFTALIGN | TPM_LEFTBUTTON,
point.x, point.y, this);
}
在pmenu->TrackPopupMenu这行就没有自动完成了,没有类成员函数,打完括号后也没有参数帮助。但就刚才上面那行pmenu->EnableMenuItem的时候还什么都是好好的。而且在这个函数中写GetDocument()->函数有参考,->后无参考,在这个文件中另一个函数void CDataView::OnUpdateContextEdit(CCmdUI* pCmdUI)中GetDocument()->情况一样。但在这个文件中另一个函数void CDataView::OnDblclk(NMHDR* pNMHDR, LRESULT* pResult) 中GetDocument()->就没有问题,都有参考。上面只是例子,有问题的不是只有这3个函数。而且,事实上,出现问题也不是这么频繁,只不过正好现在就有问题。这好像不是广scb那么简单。:(
The information in this article applies to:
Microsoft Visual C++, 32-bit Enterprise Edition, version 6.0
Microsoft Visual C++, 32-bit Professional Edition, version 6.0
Microsoft Visual C++, 32-bit Learning Edition, version 6.0SUMMARYMicrosoft Visual C++ 6.0 introduces IntelliSense as a way to make C++ programming quicker and more efficient. This article provides a list of other articles that focus on the most frequently encountered limitations with IntelliSense. For additional information, please see the following articles in the Microsoft Knowledge Base:
Q190968 BUG: IntelliSense limitations with C++ Classes Q190965 PRB: IntelliSense Limitations with #define Macros Q190966 BUG: IntelliSense Limitations with Templates Q190974 PRB: Function Prototypes Do Not Generate Parameter Info Q190975 BUG: Deleting Files from a Project Does Not Update IntelliSense Q190976 PRB: IntelliSense Ignores Unicode/ANSI Versions of the Win32 API Q190973 PRB: IntelliSense Does Not Display Enumerated Elements
MORE INFORMATIONIf IntelliSense does not seem to be working, use the following steps to ensure that it is enabled in Visual C++:
On the Tools menu, click Options.
In the Options dialog box, click the Editor tab.
In the Statement Completion group box, make sure the appropriate IntelliSense options are selected.
REFERENCESAbout Automatic Statement Completion;" Visual C++ Documentation, Using Visual C++, Visual C++ Users Guide, Text Editor, Overview: Text Editor, About Automatic Statement Completion. Automatically Completing Statements;" Visual C++ Documentation, Using Visual C++, Visual C++ Users Guide, Text Editor, How do I ... Topics: Text Editor, Automatically completing Statements.