T
Tommy Vercetti
I'm new to Managed C++ development, and I can't seem to get started.
Every time I try to include vcclr.h I get bizarre compilation errors.
I've isolated this to a really simple case:
In Visual Studio .NET 2003, I do the following
1) File->New->Project
2) Visual C++ Projects->.NET->Windows Forms Application
3) Project->Add New Item->C++ File
4) Replace the contents of the new C++ file with the simple lines:
#include "stdafx.h"
#include <vcclr.h>
5) Build->Build Solution
I get the following compilation errors:
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\stddef.h(28) : error C2144: syntax error : 'int' should
be preceded by ';'
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\stddef.h(28) : error C2501: 'p' : missing storage-class
or type specifiers
Any help is greatly appreciated.
(Sorry for the repost; but I didn't get a response to my earlier post so
I'm trying to reword and clarify)
Every time I try to include vcclr.h I get bizarre compilation errors.
I've isolated this to a really simple case:
In Visual Studio .NET 2003, I do the following
1) File->New->Project
2) Visual C++ Projects->.NET->Windows Forms Application
3) Project->Add New Item->C++ File
4) Replace the contents of the new C++ file with the simple lines:
#include "stdafx.h"
#include <vcclr.h>
5) Build->Build Solution
I get the following compilation errors:
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\stddef.h(28) : error C2144: syntax error : 'int' should
be preceded by ';'
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\stddef.h(28) : error C2501: 'p' : missing storage-class
or type specifiers
Any help is greatly appreciated.
(Sorry for the repost; but I didn't get a response to my earlier post so
I'm trying to reword and clarify)