User:Robin Cornelius/viewer-development VC2005 Express

From Second Life Wiki
Jump to navigation Jump to search

winres.h

This file is not present with Visual Studio 2005 express due to it mainly being an MFC header (MFC is not included with express), the actual requirments of this file are very low, it basicly needs to include windows.h and define IDC_STATIC.

Recommended work around is to create your own winres.h, in the Visual Studio system include location, so you always have it for all builds.

on a 32bit system - C:\Program Files\Microsoft Visual Studio 8\VC\include\winres.h on a 64bit system - C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\winres.g

#ifndef _WINRES_H
#define _WINRES_H

#include "windows.h"
#ifndef IDC_STATIC
#define IDC_STATIC 1000
#endif

#endif