Michael said:
Hi David
thanks I'll try as admin.
I've some cpp and h files which I want to integrate into my new VC project.
this line in a cpp file gives an error:
#include "XPLMPlugin.h"
where shall I put XPLMPlugin.h?
Michael:
You should understand that the folder structure that you see in Solution
Explorer in Visual Studio need have no relation to the actual location on disk.
Normally, as you develop a VC project in Visual Studio, all the .h and .cpp are
put in the same directory on disk (the project directory). In that case the simple
#include "xxx.h"
will always work correctly, because the first place the compiler will look is in
the same directory as the referencing .cpp file.
What is the relationship between the .h file and .cpp file you mention in your
post? Is the former an existing file and the latter one of your files? And what
is the directory structure of the existing files?
Anyway, some possibilities:
1. Just copy your existing files into the project directory and add them to the
project in that location.
2. Keep the existing files in their current location and modify the #include
statements in your new code to use a full path or relative path.
3. Keep the existing files in their current location and add an "Additional
#include directory" to your project (Project Properties->C/C++->General.
4. Make a static library (.lib) file out of the existing files
5. Make a dynamic library (.dll) file out of the existing files