Hello, I am trying to create my own native extension. Where can I find API reference for dmExtension?
The problem is, I want to return something different than dmExtension::RESULT_OK from AppInitialize method if anything goes wrong when initializing objects from c++ library.
/KanjiRecognizer/src/KanjiRecognizer.cpp
Line 56: cannot initialize return object of type ‘dmExtension::Result’ with an rvalue of type ‘ExtensionResult’
56 | return EXTENSION_RESULT_OK;
| ^~~~~~~~~~~~~~~~~~~
The callback api expected ExtensionResult, as your error suggests.
So, you should use:
return EXTENSION_RESULT_OK;
The other example dmExtension::Result AppInitializeKanjiRecognizer(dmExtension::AppParams* params) may be the wrong type for the function you pass it to. E.g. see