Go Back   nV News Forums > Software Forums > Software Development

Newegg Daily Deals

Reply
 
Thread Tools
Old 06-04-09, 10:11 AM   #1
darrenls59
Registered User
 
Join Date: May 2009
Posts: 4
Default visual c++2008 rejecting standard windows fucntions in imported project

hello. I imported a project which i wrote in visual c++ 2007. It worked fine in 2007 but when i imported into 2008 and it wouldn't compile. the errors were based on unresolved eternal links for functions like MessageBox, GetWindowHandle etc. the include file is there so i can only assume that for some reason 2008 hasn't imported the appropriate libraries. Can anyone tell me how to resolve this?
darrenls59 is offline   Reply With Quote
Old 06-04-09, 07:04 PM   #2
Zhivago
*BANNED*
 
Join Date: Jan 2008
Posts: 184
Default Re: visual c++2008 rejecting standard windows fucntions in imported project

Quote:
Originally Posted by darrenls59 View Post
hello. I imported a project which i wrote in visual c++ 2007. It worked fine in 2007 but when i imported into 2008 and it wouldn't compile. the errors were based on unresolved eternal links for functions like MessageBox, GetWindowHandle etc. the include file is there so i can only assume that for some reason 2008 hasn't imported the appropriate libraries. Can anyone tell me how to resolve this?
For the MessageBox function, you will need to include User32.lib into your project.
Read here for more info: http://msdn.microsoft.com/en-us/libr...05(VS.85).aspx
Zhivago is offline   Reply With Quote
Old 06-05-09, 02:58 PM   #3
darrenls59
Registered User
 
Join Date: May 2009
Posts: 4
Default Re: visual c++2008 rejecting standard windows fucntions in imported project

Quote:
Originally Posted by Zhivago View Post
For the MessageBox function, you will need to include User32.lib into your project.
Read here for more info: http://msdn.microsoft.com/en-us/libr...05(VS.85).aspx
Thank you but i don't know how to do that in this version. In older versions you could do that in references in the project properties but in this version it only seems to allow dlls and it rejects .lib
darrenls59 is offline   Reply With Quote
Old 06-09-09, 06:44 PM   #4
Zhivago
*BANNED*
 
Join Date: Jan 2008
Posts: 184
Default Re: visual c++2008 rejecting standard windows fucntions in imported project

Go to Project->Settings->Configuration Properties->Linker->Input->Additional Dependencies
Zhivago is offline   Reply With Quote
Old 06-10-09, 10:58 PM   #5
darrenls59
Registered User
 
Join Date: May 2009
Posts: 4
Default Re: visual c++2008 rejecting standard windows fucntions in imported project

Quote:
Originally Posted by Zhivago View Post
Go to Project->Settings->Configuration Properties->Linker->Input->Additional Dependencies
Thank you.
darrenls59 is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why Windows 8 could be the next Vista News Archived News Items 0 06-15-12 11:30 AM
Like XP or Vista: how will businesses treat Windows 8? News Archived News Items 0 06-06-12 10:10 AM
NVIDIA Brings 18 Years of Experience to Windows 8 News Archived News Items 0 06-03-12 07:20 AM

All times are GMT -5. The time now is 09:00 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.