added sample of manually implemented COM object which returns pointer