You are trying to compile a C++/CLI program with the C++ compiler
If you want to use C++/CLI ( which I remind you is a different language ) you need to enable the /clr option as the error message suggests
CLR empty project or CLR Console Application? does it matter? do most of the examples on msdn written with the CLR projects or does it just depend on what you are doing?
thanks by the way... :)
i found the right one... :)
in the program:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
public ref class Watcher
{
private:
// Define the event handlers.
staticvoid OnChanged( Object^ /*source*/, FileSystemEventArgs^ e )
{
// Specify what is done when a file is changed, created, or deleted.
Console::WriteLine( "File: {0} {1}", e->FullPath, e->ChangeType );
}
staticvoid OnRenamed( Object^ /*source*/, RenamedEventArgs^ e )
{
// Specify what is done when a file is renamed.
Console::WriteLine( "File: {0} renamed to {1}", e->OldFullPath, e->FullPath );
}
public: