Thanks for the advice, i come up with some solutions, which of this you think is the best choice ?

1.solution
Code:
 MainModule MM;   // this is the object
 MainModule *pMM; // This is a pointer to a struct of type MainModule
2.solution
Code:
MM = new MainModule();
Best regards,
BoSCHoW.