In Visual Studio
LNK2026: module unsafe for SAFESEH image C++
when such error occurs
Click [Project]-[*** properties]
Select [Configuration properties]
Open [Linker]-[Detail settings]
Set [NO] for [Image with a table of safe exceptions handlers]