- Create a new project
- add 2 files, driver.h (under the file headers) and driver.cpp (in the source files)
- Add content, such as #include to the header file, and include this header file in the .cpp file
- file <export template
- project template, click Next.
- add a template name, description, do not care about the icon or image, so leave it blank.
- complete and then create a project using the above template.
Now I have a ZIP folder in the exported templates containing the template that we named above (we just say the project template). The problem is that when I create a new project using this template, the .h and .cpp files are referenced in the solution explorer, but they do not exist:
And if I try to click on driver.cpp or driver.h, I get the following error
But if I insert driver.h and driver.cpp files in this place, they work
It hurts to have a template if I need to insert files for this to work, why are these files missing and still exist in the file explorer? Why does this not save the contents of the exported template? What do I need to do so that the template automatically creates two drivers.cpp and driver.h files, so I donβt need to go through this process every time I create a project that needs the same files?
source share