Original Post
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.