You could have a look into the MEL DEV kit thats bundeld with maya, it allows you to create a plug in for maya via Visual Studio and C++, theres samples and tutorials to get you going.