Re: Using user32.dll in C++ mixed mode assembly
- From: Bovine Power <bovine@xxxxxxxxx>
- Date: Fri, 10 Feb 2006 02:19:54 -0800
Bovine Power <bovine@xxxxxxxxx> wrote in
news:Xns9765AC755CE99bovineman@xxxxxxxxxxxxx:
I am trying to use user32.dll with VS2005 in a mixed mode DLL
assembly. I am trying to access GetClientRect from within the
unmanaged code. I have included windows.h and set the Additional
Library Directories in the Linker to point to the directory with
user32.lib, but when I compile it I get the following error:
error LNK2019: unresolved external symbol _GetClientRect@8 referenced
in function "...
Is there anything else I need to do to access user32.dll?
Aha, I solved it. I needed to go into Linker, Input and add user32.lib to
the Additional Dependencies.
.
- References:
- Using user32.dll in C++ mixed mode assembly
- From: Bovine Power
- Using user32.dll in C++ mixed mode assembly
- Prev by Date: Another fix for Library not registered
- Next by Date: Problem after migrating forms from VS 2003 to VS 2005
- Previous by thread: Using user32.dll in C++ mixed mode assembly
- Next by thread: ide losing auto-generated dataset
- Index(es):
Relevant Pages
|