• 11
• 9
• 10
• 9
• 11

# Visual Studio Compilation Problem

This topic is 629 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I tried to compile some code and got:

fatal error C1083: Cannot open include file: 'atlimage.h': No such file or directory

I searched the whole computer and I have not this file. I checked vc files and microsoft windows sdk. Where I can download this file, is it included in another vc versions? I saw on the internet that not only I had this problem but I didn't find a solution.I think that this file should be in windows SDK. Could you check it?

##### Share on other sites

What version of VS are you using?  I've seen some stuff on stack overflow that suggests it isn't in some of the express versions.  I did find installed in Visual Studio Community 2015.

##### Share on other sites

I have vs10 express, but I cant find 2010 standard on internet, later versions is not an option, I am running on vista currently, someone have download for vs10 standard or can provide missing files?

##### Share on other sites

I did it, hard work to find solution. No support dont mean dont work :P For anyone who have this problem this is solution.

THIS ONLY WORK FOR EXPRESS NO PRO!!!

2.Add includes and libraries path to project

3.You will have errors with min function in atlimage.h

#define NOMINMAX

change

UINT nMaxColor = min(256, (UINT)pPalette->Count);

to

UINT nMaxColor = min((UINT)256, (UINT)pPalette->Count);

4.You will have errors with atldef.h

change

#include "..\atl30\atldef.h"

to

#include "..\atl71\atldef.h"

5.You will have errors with atlconv.h

change

#include "..\atl30\atlconv.h"

to

#include "..\atl71\atlconv.h"

6.Now it should compile

Edited by widmowyfox

##### Share on other sites

I have vs10 express, but I cant find 2010 standard on internet, later versions is not an option, I am running on vista currently, someone have download for vs10 standard or can provide missing files?

Why are later versions not an option? And why are you on vista??? That OS is several versions old now.