Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / February 2006

Tip: Looking for answers? Try searching our database.

Using user32.dll in C++ mixed mode assembly

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bovine Power - 09 Feb 2006 16:54 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 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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.