If you're using vinka's spacecraft.dll, then animating objects is a matter of directing to the right object in the ini file
and giving the right coordinates for a translation, rotation or scale.
In order to do that you need a model, and a different mesh for each part to animate. (Anim8or is a 3d modeller. Use it
to create your model)
Download vinka's spacecraft.dll and read the manual where everything is explained.
For modules I don't know a thing about C++ so I can't help you.