search

Home  >  Q&A  >  body text

如何让VS2015 VC++的IntelliSense支持include用.h结尾的文件?


如上图,不知道怎么了,MFC/ATL的头文件的include都报错,因为他们都是这样写的:

#include <string.h>

而改成这样:

#include <cstring>

就又好了

如下图:

PHP中文网PHP中文网2803 days ago566

reply all(2)I'll reply

  • 巴扎黑

    巴扎黑2017-04-17 13:20:45

    Check if your vs2015 has the mfc development component installed. Mine is not installed. What is displayed in the mfc type project under visual eating++ is
    instsll micrsoft foundation classes for c++
    If it is the same for you, install it and see the effect.
    For reference only!

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 13:20:45

    If you are using the Community version, there is no MFC. If you are using Professional, MFC will not be selected by default unless you SelectAll or specifically click on it.

    reply
    0
  • Cancelreply