M
Michael Kennedy [UB]
Hi,
I would like to report some weird behavior which results in an internal
compiler error in VS.NET 2003 (VC++).
I have an ATL COM dll project which also uses MFC. This solution (workspace
at the time) was created in VS 6.0 using the current versions of ATL and MFC
at that time. Then it was upgraded to VS.NET 2002 and the respective
versions of ATL and MFC. So far everything has been fine.
Now I tried to compile this project in VS.NET 2003 and there is some very
strange behavior. Rebuilding the entire solution results in this message:
fatal error C1001: INTERNAL COMPILER ERROR compiler file msc1.cpp line
2701
I discovered that if I change the stdafx.h file to use windows version 0x500
(see listing below) then it compiles OK. But it seems like I should be able
to keep it at 0x400. Stanger still, if one of _WIN32_WINNT and WINVER is
0x400 and one is 0x500 (can't remember which was which) then it compiles in
DEBUG but results in the compiler error in RELEASE.
Does any one know how to get around this? Is this a known issue?
Thanks in advance,
Michael
------------- stdafx.h -----------------------
#define STRICT
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#define WINVER 0x0500
#include <afxwin.h>
#include <afxdisp.h>
#include <atlbase.h>
//You may derive a class from CComModule and use it if you want to override
//something, but do not change the name of _Module
extern CComModule _Module;
#include <atlcom.h>
---------------------------------------------
I would like to report some weird behavior which results in an internal
compiler error in VS.NET 2003 (VC++).
I have an ATL COM dll project which also uses MFC. This solution (workspace
at the time) was created in VS 6.0 using the current versions of ATL and MFC
at that time. Then it was upgraded to VS.NET 2002 and the respective
versions of ATL and MFC. So far everything has been fine.
Now I tried to compile this project in VS.NET 2003 and there is some very
strange behavior. Rebuilding the entire solution results in this message:
fatal error C1001: INTERNAL COMPILER ERROR compiler file msc1.cpp line
2701
I discovered that if I change the stdafx.h file to use windows version 0x500
(see listing below) then it compiles OK. But it seems like I should be able
to keep it at 0x400. Stanger still, if one of _WIN32_WINNT and WINVER is
0x400 and one is 0x500 (can't remember which was which) then it compiles in
DEBUG but results in the compiler error in RELEASE.
Does any one know how to get around this? Is this a known issue?
Thanks in advance,
Michael
------------- stdafx.h -----------------------
#define STRICT
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#define WINVER 0x0500
#include <afxwin.h>
#include <afxdisp.h>
#include <atlbase.h>
//You may derive a class from CComModule and use it if you want to override
//something, but do not change the name of _Module
extern CComModule _Module;
#include <atlcom.h>
---------------------------------------------