.Net Question

Hi ,
I dont know if its appropriate for this group, but my question is more
.NET. I want to find out if its possible to use FileSystemWatcher component
in VC++ im havin a hard time with it. I see a lot of examples for VB and c#,
but not for VC. The code im trying is

#include
#using <mscorlib.dll>

using namespace System::IO;
using namespace std;

int main(){
FileSystemWatcher fsw;
cout << “hey man” << endl;
return 0;
}

I get an error that FileSystemWatcher is an undeclared identifer. I checked
in the FilesystemWatcher Component to be included in the project. Can some
one please help me.

Thanks
Junaith Ahemed</mscorlib.dll>

This isn’t really the right forum but this builds:

#include
#using <mscorlib.dll>
#using <system.dll>

using namespace System::IO;
using namespace std;

int main(){
FileSystemWatcher * fs = new FileSystemWatcher();
cout << “hey man” << endl;
return 0;
}

cl /c /clr /GX t.cpp</system.dll></mscorlib.dll>