Before you use the wxMedia classes, you must call wxInitMedia(). This will call wxInitStyles() to initialize the styles subsystem.