Quote Originally Posted by Fluidz View Post
Trying to #import "user32.lib" gives the following error:

[...]
As Igor already confirmed, #import is the wrong directive here. The right one, if you don't want to simply add the library on the property page mentioned, is this:

Code:
#pragma comment(lib, "user32.lib")
I have Googled around but I don't know how to swap back to normal CLR.
This option is on the General property page (for the project) and on C/C++ -> General for both the project and individual source files.

[...] I get an error for importing <sal.h>. So basically, it doesn't work on a VC++ project, does on a Visual Studio, however, on the Visual Studio project <sal.h> is missing or non-existent.

Sal error: 1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\crtdefs.h(68): fatal error C1083: Cannot open include file: 'sal.h': No such file or directory
I have Visual Studio 10, not 11, but I do have that file, in the same directory as crtdefs.h. Perhaps there's something wrong with your installation? BTW, headers aren't imported either, they're included.