I'm building a simple Microsoft VS C++ based COM object.
I've run into an compile time error I can't quite figure out:
Here is the definition in the header file:
Here is the definition in the CPP file:
struct __declspec(uuid("xxx")) IFooBar : IUnknown
virtual bool __stdcall GetValues( std::vector<int>& values )
struct FooBar : IFooBar
bool __stdcall GetValues( std::vector<int>& values )
The idea behind the method is to return a vector/array or list (collection) to the caller.
At compile time I get the following error:
IntelliSense: object of abstract class type "FooBar" is not allowed:
pure virtual function "IFooBar::GetValues" has no overrider.
I'm not sure what I'm doing wrong here.
I know I can pass a const vector of int's into the COM object.
Is there a better way to do this?
I'm really trying to basically return a list (collection) of integers back to the caller.