为什么我的.cpp和/或.h文件无法在Visual Studio中打开? [英] Why are my .cpp and/or .h files not opening in Visual Studio?
问题描述
我在visual studio中使用我的项目时遇到的问题是,我将打开一个空项目,将代码写入我的.h和.cpp文件,保存,然后当我尝试要打开代码,只打开部分程序或不打开程序。在解决方案资源管理器下,我将
转到源文件和头文件下,双击"file_name.cpp";或"file_name.h",但不是在VS中打开,而是打开一个空白页面。如何修复此问题并防止它在未来的项目中发生?
The problem I am having with my project(s) in visual studio is that I'll open an empty project, write code into my .h and .cpp files, save it, and then later when I try to open the code, only part or none of the program opens. Under Solution Explorer, I'll go under Source Files and Header files, double click on "file_name.cpp" or "file_name.h", but instead of opening in VS, Notebook opens with a blank page. How do I fix this and prevent it from occurring with future projects?
不确定这是否与我的问题相关,但我在运行虚拟的Windows 10上运行Visual Studio 2015 machine(VirtualBoxVM)。
Not sure if this is relevant to my problem but I am running Visual Studio 2015 on Windows 10 which is running on a virtual machine (VirtualBoxVM).
推荐答案
嗨Fab,
感谢您在此处发帖。
>>我在视觉工作室中使用我的项目遇到的问题是我ll打开一个空项目,将代码写入我的.h和.cpp文件,保存,然后当我尝试打开代码时,只打开部分或全部程序。
这个论坛是关于c ++开发的。对于您的情况,我会将其移至一般论坛以获得更好的支持。
This forum is about c++ development. For your case, I will move it to vs general forum for better support.
您的理解与合作将不胜感激。
最好的问候,
Sera Yu
Best Regards,
Sera Yu
这篇关于为什么我的.cpp和/或.h文件无法在Visual Studio中打开?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!