c++ - error LNK2019: unresolved external symbol SHInitExtraControls referenced? -


how can resolve error:

error 1 error lnk2019: unresolved external symbol shinitextracontrols referenced in function "public: virtual int __cdecl ctestapp::initinstance(void)" (?initinstance@ctestapp@@uaahxz) test.obj

thanks

you need link against aygshell.lib. note msdn page shinitextracontrols() says aygshell.lib required library use it.

a lnk2019 means forgot provide definition of something. in case, definition of shinitextracontrols() located in aygshell.lib. without it, linker complain when attempt use shinitextracontrols().

to link against aygshell.lib in visual studio, go project --> properties --> linker --> input --> additional dependencies type aygshell.lib in box.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -