Expand|Select|Wrap|Line Numbers
- #include <iostream>
- using namespace std;
- using namespace System;
- int main()
- {
- std::cout << "Welcome to C++/CLI Programming. ";
- System::Console::WriteLine("C++/CLI is the new full-featured C++");
- return 0;
- }
but it gives me the error that system namespace can't be found like this :
Expand|Select|Wrap|Line Numbers
- 1>------ Build started: Project: test3, Configuration: Debug Win32 ------
- 1>Compiling...
- 1>test.cpp
- 1>d:\mijn documenten\visual studio 2005\projects\test3\test3\test.cpp(3) : error C2871: 'System' : a namespace with this name does not exist
- 1>d:\mijn documenten\visual studio 2005\projects\test3\test3\test.cpp(8) : error C2653: 'System' : is not a class or namespace name
- 1>d:\mijn documenten\visual studio 2005\projects\test3\test3\test.cpp(8) : error C3861: 'WriteLine': identifier not found
- 1>Build log was saved at "file://d:\Mijn documenten\Visual Studio 2005\Projects\test3\test3\Debug\BuildLog.htm"
- 1>test3 - 3 error(s), 0 warning(s)
- ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Can someone please explain me why it doesn't work, and how I can fix this ?