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?
Bovine Power - 10 Feb 2006 10:19 GMT
> I am trying to use user32.dll with VS2005 in a mixed mode DLL
> assembly. I am trying to access GetClientRect from within the
[quoted text clipped - 6 lines]
>
> 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.