nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   Software Development (http://www.nvnews.net/vbulletin/forumdisplay.php?f=53)
-   -   visual c++2008 rejecting standard windows fucntions in imported project (http://www.nvnews.net/vbulletin/showthread.php?t=134034)

darrenls59 06-04-09 09:11 AM

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?

Zhivago 06-04-09 06:04 PM

Re: visual c++2008 rejecting standard windows fucntions in imported project
 
Quote:

Originally Posted by darrenls59 (Post 2022941)
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

darrenls59 06-05-09 01:58 PM

Re: visual c++2008 rejecting standard windows fucntions in imported project
 
Quote:

Originally Posted by Zhivago (Post 2023321)
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

Zhivago 06-09-09 05:44 PM

Re: visual c++2008 rejecting standard windows fucntions in imported project
 
Go to Project->Settings->Configuration Properties->Linker->Input->Additional Dependencies

darrenls59 06-10-09 09:58 PM

Re: visual c++2008 rejecting standard windows fucntions in imported project
 
Quote:

Originally Posted by Zhivago (Post 2026064)
Go to Project->Settings->Configuration Properties->Linker->Input->Additional Dependencies

Thank you.


All times are GMT -5. The time now is 12:24 PM.

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