Solution for Error ERROR_DLL_INIT_FAILED while Loading winmd file in Windows RT

If you experienced the Exception :

Error in the DLL (Exception from HRESULT: 0x8007045a (ERROR_DLL_INIT_FAILED))

The solution is simple : You have to remove the main function.(I know, why the fonction “main” is called with DLL? idk :))

This entry was posted in C++ CX, WinRT. Bookmark the permalink.