trying to integrate catiaV5 with visual studio 2005 and want to create a point feature using a customized Ui

i had created an project were i want to create a point feature using a prog language as c++.
1 st step i had done is i had created my frame & module.
2nd step i had added a component which i had tied with Catiafrwrshpaddin.
3 rd then i had added the createcommand & create toolbar method and included supporting files to
4th then i had added one more source file including Activate method which contains my point creation code.
5th when i run the catia after building it on tools menu i am able to see my customized button which will create point but when i click on that button it should create a point as psr my knowledge and should execute the activate method.
But when i click on that button it shows error "unable to access the command"