I think this is because you need to have initialized DirectX before you can using DirectX functions. Most engine functions need DirectX, bitmap functions for certain.
Its the same as if you would use entity functions without having created an entity before.