You can skip this part if you just want to get a working code, I want to briefly comment how I wrote this code and why. Displaying an image on an SLM is not harder than displaying an image on a screen ...
All the user interface is done with wxPython scripts. The graphics canvas is created by wxPython. The OpenGL commands are done in the c++ by my CAD module.
For fixing DLL errors, we recommend Fortect: Fortect will search for an intitial version of your missing, corrupted or damaged DLL files that cause problems to your Windows OS and will replace it.