   MSVC 2005 Express and PSDK
  Hi i downloaded the PSDK for vc2005 today and i cant seem to get it linking properly. I followed all the directions on this page http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/default.aspx wich tell you how to set up the paths for the compiler and some other stuff. The only thing i didn't do is edit the corewin_express.proj becuase when i opend it in notepad it already had everything plus more this page told me to put in it. Anyways im getting all kinds of unresolved symbols when i try to link a standard bare bones windows app created by the wizard. Linking...test.obj : error LNK2019: unresolved external symbol __imp__DispatchMessageW@4 referenced in function _wWinMain@16test.obj : error LNK2019: unresolved external symbol __imp__TranslateMessage@4 referenced in function _wWinMain@16test.obj : error LNK2019: unresolved external symbol __imp__TranslateAcceleratorW@12 referenced in function _wWinMain@16test.obj : error LNK2019: unresolved external symbol __imp__GetMessageW@16 referenced in function _wWinMain@16test.obj : error LNK2019: unresolved external symbol __imp__LoadAcceleratorsW@8 referenced in function _wWinMain@16test.obj : error LNK2019: unresolved external symbol __imp__LoadStringW@16 referenced in function _wWinMain@16test.obj : error LNK2019: unresolved external symbol __imp__RegisterClassExW@4 referenced in function "unsigned short __cdecl MyRegisterClass(struct HINSTANCE__ *)" (?MyRegisterClass@@YAGPAUHINSTANCE__@@@Z)test.obj : error LNK2019: unresolved external symbol __imp__LoadCursorW@8 referenced in function "unsigned short __cdecl MyRegisterClass(struct HINSTANCE__ *)" (?MyRegisterClass@@YAGPAUHINSTANCE__@@@Z)test.obj : error LNK2019: unresolved external symbol __imp__LoadIconW@8 referenced in function "unsigned short __cdecl MyRegisterClass(struct HINSTANCE__ *)" (?MyRegisterClass@@YAGPAUHINSTANCE__@@@Z)test.obj : error LNK2019: unresolved external symbol __imp__UpdateWindow@4 referenced in function "int __cdecl InitInstance(struct HINSTANCE__ *,int)" (?InitInstance@@YAHPAUHINSTANCE__@@H@Z)test.obj : error LNK2019: unresolved external symbol __imp__ShowWindow@8 referenced in function "int __cdecl InitInstance(struct HINSTANCE__ *,int)" (?InitInstance@@YAHPAUHINSTANCE__@@H@Z)test.obj : error LNK2019: unresolved external symbol __imp__CreateWindowExW@48 referenced in function "int __cdecl InitInstance(struct HINSTANCE__ *,int)" (?InitInstance@@YAHPAUHINSTANCE__@@H@Z)test.obj : error LNK2019: unresolved external symbol __imp__PostQuitMessage@4 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z)test.obj : error LNK2019: unresolved external symbol __imp__EndPaint@8 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z)test.obj : error LNK2019: unresolved external symbol __imp__BeginPaint@8 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z)test.obj : error LNK2019: unresolved external symbol __imp__DefWindowProcW@16 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z)test.obj : error LNK2019: unresolved external symbol __imp__DestroyWindow@4 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z)test.obj : error LNK2019: unresolved external symbol __imp__DialogBoxParamW@20 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z)test.obj : error LNK2019: unresolved external symbol __imp__EndDialog@8 referenced in function "int __stdcall About(struct HWND__ *,unsigned int,unsigned int,long)" (?About@@YGHPAUHWND__@@IIJ@Z)C:\Documents and Settings\robert\My Documents\Visual Studio 2005\Projects\test\Debug\test.exe : fatal error LNK1120: 19 unresolved externalsIf anyone could help it would be greatly appreciated :)   
  You are sure that you changed the directories to point at the Platform SDK? Are you sure that they are at the top of the list? If they are, than I don't know what the problem is.   ;  It sounds like you didn't add the library files listed in the platform SDK installation instructions to the default link list.   ;  Ya i pulled the drop down list and picked executables added the bin path and so on with include and libs. I just set these all up in the project properties not sure if that has to do with the linker paths though.   ;  Hmmm well i just watched some video from ms about installing the psdk and i seem to have all my bases covered :(. I cant figure out why this thing wont link i even tried just making a simple window and the linker broke down and told me unresolved external at WinMainCRTStartup or something like that. If anyone has any ideas they would be greatly appreciated, ive been messing with thing for hours and its still not working.   ;  The problem is that by default, VC++ Express doesn't link to the standard Win32 libraries (since they're not installed by default). Try adding kernel32.lib, gdi32.lib, user32.lib, advapi32.lib and anything else you need to the "Additional libraries" option in Linker settings.   ;  Did you follow all the steps on This Page?   ;  Thank you that solved the problem, i found the linker input stuff finaly! :) :) Is there any way to add that to the additional dependencies for all windows projects? i never had to do this with 2003 EA obviously. I thought adding that into my wincore.proj or whatever was suppose to automatically do this for all windows apps?   ;Quote:Original post by BoorishIdIs there any way to add that to the additional dependencies for all windows projects? i never had to do this with 2003 EA obviously. I thought adding that into my wincore.proj or whatever was suppose to automatically do this for all windows apps?Link:Quote:Step 4: Update the corewin_express.vsprops file.One more step is needed to make the Win32 template work in Visual C++ Express. You need to edit the corewin_express.vsprops file (found in C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults) andChange the string that reads:AdditionalDependencies="kernel32.lib" toAdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"That should do it, so long as you close MSVC before modifying the file, and open it up again with a new project after. If you create a project, then modify the file, then the project won't automatically take the defaults from the corewin_express.vsprops file, it'll use the ones it was using when the project was created.   ;  I had a link to the same site you showed me in the first post i made. I figured out what the problem is though, i feel like an idiot!! I was editing the CoreWin.proj and not the CoreWin_express.proj!!! Man what a stupid mistake sure wasted alot of time. Thank you guys for all your help.   