Look in your project settings, custom build step. You should see where your application is being called with some command line parameters (like "/RegServer") to register whatever COM objects your exe contains.

Since you don't know why this is happening, I'm guessing that you didn't intend for your exe to contain any COM objects??

gg