If you get either of these errors when you're launching HoI4.exe (or any other games) chances are that you're missing a Windows update. Please do the following to try and solve it:
1. In the search filed of your start menu, type Update and click the Check for Update option. If there are any updates waiting for you, please make sure you install them, then try the game again.
2. If there are no updates pending, please go here (https://www.microsoft.com/en-us/download/details.aspx?id=5555), download the latest package, run that and then try the game again.