## Can't use VC++ 2010 wx2.9

Lectus
In need of some credit
Posts: 6
Joined: Mon Nov 14, 2011 8:30 pm

### Can't use VC++ 2010 wx2.9

Hello!
I just did a clean install of wxDev-C++ 7.4.1.
I installed the devpak for VC++2010 wx2.9.
I can't build a simple project with VC++2010. I get this error:
66 C:\Dev-Cpp\include\common\wx\msw\wrapwin.h [Error C1083] Cannot open include file: 'windows.h': No such file or directory

How to solve this?

tbreina
Moderator
Posts: 1289
Joined: Thu Nov 25, 2004 7:38 pm

### Re: Can't use VC++ 2010 wx2.9

Ok. Let's take this step by step:

1. Do you have the MS VC 2010 compiler installed? http://www.microsoft.com/visualstudio/e ... pp-express

2. Do you have the wxWidgets_common.devpak installed for 2.9.2?

3. What does the compiler output look like when you do a Rebuild All?

I can confirm that I am able to build with VC2010 on my machine. The only change I needed to make was to add C:\Program Files\Dev-Cpp\lib\msw to the library directory path so that it could find wxmsw29u.lib. Other than that, it does work.

-Tony
Everybody's got something to hide except for me and my monkey.

Lectus
In need of some credit
Posts: 6
Joined: Mon Nov 14, 2011 8:30 pm

### Re: Can't use VC++ 2010 wx2.9

1. Yes, I have VC++ 2010 Express.
2. Yes, I have wxWidgets_common.devpak.
3. It can't find windows.h.

Any idea?

How does your include paths look like?

Lectus
In need of some credit
Posts: 6
Joined: Mon Nov 14, 2011 8:30 pm

Got it to work.