Pergunta

I have created a COM ATL DLL in VS2012. Adding events and properties is very easy. However, I see no easy way to edit or delete an event or a property.

VS2012 automatically creates a lot of code for the event or property when I use the Add Wizard, and I am not sure if I should really delete or change this automatically created code manually when I made a mistake and want to replace or delete something.

Is there a way to edit and delete them in a clean way? Perhaps there is a property / event manager somewhere in VS2012, but I did not find it.

Thank you!

Foi útil?

Solução

You edit declaration of the methods/properties of your interest on IDL, and then the project stops building until you respectively fix it by reflecting changes on your C++ implementation - that's it.

IDL changes along with implementation updated respectively builds you updated DLL.

Be aware that applications which are already built against earlier method/property set might be in trouble after the update. Related earlier questions you might be interested in (you might, however be not - which I sense is the case at the moment, if your question is about updates while you are developing, and not updates on released module):

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top