Hello, I need to update my older Autodesk plug-in. And I am having troubles get it through. (They changed one function)
This is a new definition which I cannot change:
CoreExport virtual void EnumAuxFiles(AssetEnumCallback& assetEnum, DWORD flags);
And here is my code:
class CheckFileNames: public AssetEnumCallback {
public:
NameTab* missingMaps;
BitmapInfo bi;
CheckFileNames(NameTab* n);
void RecordName(TCHAR *name);
};
CheckFileNames::CheckFileNames(NameTab* n)
{
missingMaps = n;
}
int LoadMapFiles(INode* node, SContext* sc, MtlBaseLib& mtls, TimeValue t)
{
NameTab mapFiles;
CheckFileNames checkNames(&mapFiles); // HERE is the bug
//error C2259: 'CheckFileNames' : cannot instantiate abstract class
node->EnumAuxFiles(checkNames, FILE_ENUM_MISSING_ONLY |FILE_ENUM_1STSUB_MISSING);
}
My C++ is quite rusty by now, but if I understand it correctly: the new definition is a pure virtual function which makes my class abstract.
How do I correct it ?
(Perhaps I should inherit from my class somehow, but what is the proceeding ?)
Thank you very much for any kind of help.