I am getting the following error in vs 2008:
midl : error MIDL9008 : internal compiler problem – See documentation for suggestions on how to find a workaround.
midl: Assertion failed: ( rc < _MAX_DIR ) && ( rc != 0 ), file d:\longhorn\com\rpc\midl\front\filehndl.cxx, line 821
The problem is caused by the following code in the file %PROGRAMFILES%\Microsoft SDKs\Windows\v7.1\Include\Guiddef.h on the line I have marked with <-----:
#ifndef GUID_DEFINED
#define GUID_DEFINED
#if defined(__midl)
typedef struct {
unsigned long Data1;
unsigned short Data2;
unsigned short Data3;
byte Data4[ 8 ];
} GUID; <------
#else
typedef struct _GUID {
unsigned long Data1;
unsigned short Data2;
unsigned short Data3;
unsigned char Data4[ 8 ];
} GUID;
#endif
#endif
Renaming or deleting "GUID" will solve the internal compiler problem, but of course causes many others. Both the code and the midl.exe executables (from WinSDK v6.0), which are used, are identical to those on an other computer which this error does not happen. Anybody has a better idea than reinstalling Windows?
Seems like there was something really badly corrupt. Re-installing Windows and Visual Studio helped though.