Sign in to follow this  

Visual Studio 2005

This topic is 4834 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey, I have a problem. I compiled, built and ran my application succesfully in VS 6 and when I moved it to VS 2005 beta 1, it says this:
------ Build started: Project: Data Log, Configuration: Debug Win32 ------
Linking...
LINK : warning LNK4076: invalid incremental status file '.\Debug/Data Log.ilk'; linking nonincrementally
Data Log.obj : error LNK2019: unresolved external symbol __imp__DefWindowProcA@16 referenced in function "long __stdcall WindowProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WindowProc@@YGJPAUHWND__@@IIJ@Z)
Data Log.obj : error LNK2019: unresolved external symbol __imp__PostQuitMessage@4 referenced in function "long __stdcall WindowProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WindowProc@@YGJPAUHWND__@@IIJ@Z)
Data Log.obj : error LNK2019: unresolved external symbol __imp__EndPaint@8 referenced in function "long __stdcall WindowProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WindowProc@@YGJPAUHWND__@@IIJ@Z)
Data Log.obj : error LNK2019: unresolved external symbol __imp__BeginPaint@8 referenced in function "long __stdcall WindowProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WindowProc@@YGJPAUHWND__@@IIJ@Z)
Data Log.obj : error LNK2019: unresolved external symbol __imp__DispatchMessageA@4 referenced in function _WinMain@16
Data Log.obj : error LNK2019: unresolved external symbol __imp__TranslateMessage@4 referenced in function _WinMain@16
Data Log.obj : error LNK2019: unresolved external symbol __imp__PeekMessageA@20 referenced in function _WinMain@16
Data Log.obj : error LNK2019: unresolved external symbol __imp__GetSystemMetrics@4 referenced in function _WinMain@16
Data Log.obj : error LNK2019: unresolved external symbol __imp__CreateWindowExA@48 referenced in function _WinMain@16
Data Log.obj : error LNK2019: unresolved external symbol __imp__LoadMenuA@8 referenced in function _WinMain@16
Data Log.obj : error LNK2019: unresolved external symbol __imp__RegisterClassExA@4 referenced in function _WinMain@16
Data Log.obj : error LNK2019: unresolved external symbol __imp__LoadIconA@8 referenced in function _WinMain@16
Data Log.obj : error LNK2019: unresolved external symbol __imp__LoadCursorA@8 referenced in function _WinMain@16
Data Log.obj : error LNK2019: unresolved external symbol __imp__CreateSolidBrush@4 referenced in function _WinMain@16
.\Debug/Data Log.exe : fatal error LNK1120: 14 unresolved externals
Build log was saved at "file://c:\Visual C++ Projects\Data Log\Debug\BuildLog.htm"
Data Log - 15 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I'm wondering why. I added the paths to the new Windows SP 2 SDK and included my windows.h and windowsx.h what esle am I doing wrong? Thanks in advance.

Share this post


Link to post
Share on other sites
VS.NET 2005 Express doesn't ship with the appropriate libraries linking into C++ Win32 apps by default. IIRC, MSDN has an article on how to get it set up for that. Poke around there and you should find it.

Share this post


Link to post
Share on other sites

This topic is 4834 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this