Pelles C forum
C language => Beginner questions => Topic started by: MT on May 29, 2008, 09:57:59 PM
-
In trying to understand C a little better, i wanted to look at the contents of windows.h. When I try to open it in the IDE with
"Add Files to Project..."
I get the error mesage:
Unable to add the file "windows.h" to the project. The target file cannot be determined from the source files extension"
What does this mean?
in another project I see the header files under a sub folder
"Include Files"
How do I create this sub folder?
-
The standard Windows header files can not be included in the project directly, they are included through the #include directive in the code.
You can add the line #include <windows.h> in the code, click on <window.h> with the right mouse button and select Open windows.h from the context menu.
-
Actually, to view the included file in the IDE you must use the following syntax:
#include "windows.h"
using
#include <windows.h> causes the project to incorporate the header but the IDE will not display it.
-
Actually, to view the included file in the IDE you must use the following syntax:
#include "windows.h"
using
#include <windows.h> causes the project to incorporate the header but the IDE will not display it.
No, that's no right. Using #include <windows.h> works fine when using right mouse button.
John
-
in another project I see the header files under a sub folder
"Include Files"
Copy that directory below your project directory.
Look at that FooTest.
-
John wrote:
No, that's no right. Using #include <windows.h> works fine when using right mouse button.
Here I've been using Pelles IDE for several years and doing things the hard way. :-\
Thanks for the tip.