   coredll.lib
  hey I was getting the following linker error:dxut.lib(DXUTmisc.obj) : error LNK2019: unresolved external symbol __imp__RegSetValueExW@24 referenced in function "void __cdecl DXUTDisplaySwitchingToREFWarning(void)" (?DXUTDisplaySwitchingToREFWarning@@YAXXZ)dxut.lib(DXUTmisc.obj) : error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "void __cdecl DXUTDisplaySwitchingToREFWarning(void)" (?DXUTDisplaySwitchingToREFWarning@@YAXXZ)dxut.lib(DXUTmisc.obj) : error LNK2019: unresolved external symbol __imp__RegQueryValueExW@24 referenced in function "void __cdecl DXUTDisplaySwitchingToREFWarning(void)" (?DXUTDisplaySwitchingToREFWarning@@YAXXZ)dxut.lib(DXUTmisc.obj) : error LNK2019: unresolved external symbol __imp__RegOpenKeyExW@20 referenced in function "void __cdecl DXUTDisplaySwitchingToREFWarning(void)" (?DXUTDisplaySwitchingToREFWarning@@YAXXZ)when I tried to compile my program shell (just a blank window using dxut).  I looked up those 4 functions in msdn and found out theyre from coredll.lib which I then tried to link to my project.  VC++ couldnt find it though.  Ive done some googling and managed to find out that its a Windows CE (or embedded? dont rly remember) file and I shouldnt have any functions that use it.  I also found an old post of mine on this site asking the same question.  I know I fixed it back then but I have no clue how and none of the posts gave me the answer.  Any help?  also if someone could tell me how to set all these lib files to link by default to new projects that would be great.   
  Take a look at the .lib files that you are linking too.  They should be all of the following for DXUT:retail build:dxerr.lib dxguid.lib d3dx9.lib d3d9.lib winmm.lib comctl32.libor for the debug build:dxerr.lib dxguid.lib d3dx9d.lib d3d9.lib winmm.lib comctl32.libYou do not need coredll.lib.   ;  yea somehow when I went back to msdn it showed me a different lib file?? avi---32.lib or something dont remember.  weird..   ;  Oh, I didn't read that correctly.  I thought you were getting a link error for one of the DXUT calls.  I see that what it is really saying is that it cannot link to some other calls that are in the DXUT functions.WHen I look up "RegOpenKeyEx" in Visual Studio 2003 help, it says that it is in the platform SDK.  So, you need to be sure that the version of VS you are using has the latest platform SDK files installed.  They are available on MSDN.It also says that this function is:Header: Declared in Winreg.h; include Windows.h.Library: Use Advapi32.lib.So, if you have the platform SDK installed correctly, you won't need to do anything extra in your project (you don't have to include the advapi32.lib file in your project).