The COM documentation and installation has C++ Example files you can use.
They are located in the installation folder at c:\Program Files\Geomagic\Common\Geomagic COM Server\C++ Example\.
The COM example shows how to pass along macro's thru COM to the Geomagic application.
Please also see the below link to download the COM Server and see examples.