C language > Beginner questions
opening windows.h
MT:
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?
Stefan Pendl:
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.
DMac:
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.
JohnF:
--- Quote from: DMac on May 30, 2008, 05:14:15 PM ---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.
--- End quote ---
No, that's no right. Using #include <windows.h> works fine when using right mouse button.
John
TimoVJL:
--- Quote ---in another project I see the header files under a sub folder
"Include Files"
--- End quote ---
Copy that directory below your project directory.
Look at that FooTest.
Navigation
[0] Message Index
[#] Next page
Go to full version