Recently I spent some time learning how to write Add-in for Visual C + + 6.0. This is an interesting question, but overall, documentation and sample procedures are still scarce (more rare in Chinese). So I decided to write out some of my own learning process, and share with you.
Frequently asked questions about Visual C + + add-in
(1) What is Visual C + + add-in? What is it used for?
In general, Visual C + + add-in is a component object that implements certain COM interfaces that can be embedded in the Developer Studio integrated development environment and provide commands for automating tasks, or simplifying program writing processes, and so on.
From a programmer's point of view, a Visual C + + add-in is basically a COM object that implements the Idsaddin interface. With this interface, Add-in is able to manage the Developer Studio environment and perform specific tasks.
(2) How to write add-in?
The easiest way to do this is to start Visual C + + AppWizard and select DevStudio add-in Wizard from the project type, as shown in the following figure.
(3) Where to find the programming materials and documents about add-in?
The most complete documentation is in MSDN, where MSDN library\visual Studio documentation\using Visual c++\visual C + + User ' s guide\automating Tasks in Vi Sual C++\add-ins for Visual C + + Developer Studio. Different versions of MSDN may have some minor differences on specific paths.