CCoreScannerClass cannot be embedded.

Hi,
I am trying to use the Zebra CoreScanner API to program Zebra DS457 scanner. I have followed the instructions in API documentation to create sample console application and copied the exact same code from the document. When I tried to compile the code, I am getting the error "CCoreScannerClass cannot be embedded. Use the applicable interface instead". Can some one please help me figure the issue with this particular error.

I am attaching screen of visual studio with the program and the compiled error in the bottom.

Thanks,
Suman.

Attachments: