Basic native/C++ com add-in for quick and dirty tests
To install the addin run:
regsvr32 SampleNativeCOMAddin.dll
To uninstall the addin run:
regsvr32 /u SampleNativeCOMAddin.dll
The register and unregister will take care of all the registry that is needed including:
- COM registration of addin and sample control
- Registration of the addin with Outlook
- Registration of the addin form region with Outlook
File/Options/Add-ins, look for "Outlook Sample Native COM Addin Connect Class Object"
Simplest debugging is on the machine where the add-in was built.
- Register addin as above
- Start Outlook
- Debug/Attach to process. Make sure to attach as native code. Choose Outlook.
- Set breakpoints and go!