# Visual C++ will not import headers

**URL:** <https://forum.kirupa.com/t/visual-c-will-not-import-headers/212543>\
**Category:** programming\
**Created:** [January 11, 2007, 9:44pm UTC](https://forum.kirupa.com/t/visual-c-will-not-import-headers/212543 "2007-01-11T21:44:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Al6200](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@Al6200](https://forum.kirupa.com/u/Al6200)\
**Post date:** [January 11, 2007, 9:44pm UTC](https://forum.kirupa.com/t/visual-c-will-not-import-headers/212543/1 "2007-01-11T21:44:49Z")

</div>

In an empty file, with the code:

#include “windows.h”  
#include “stdafx.h”  
#include “d3d.h”

I get the error “Cannot open objbase.h”.

If I remove the last line, there is no error. I’ve gone into settings and set the DirectX/include file as a directory for includes.

WHY?!?!?!?

I HAVE NO PROBLEMS WITH MANAGED DIRECTX!

WHY?!?!?!?!?!?
