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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -