|
-
January 18th, 2012, 07:57 AM
#9
Re: Setting an external application Window
 Originally Posted by Fluidz
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.
I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.
This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|