It seems that opcPreStep() doesn't get called from a dll for an atmosphere module. Then I tried with oapi::Module::clbkPreStep(), but it's the same; this is the code:
Is that correct?
Code:
class MODU : public oapi::Module
{
public:
MODU(HINSTANCE hDLL);
void clbkPreStep(double simt, double simdt, double mjd);
};
MODU::MODU(HINSTANCE hDLL) : oapi::Module(hDLL) { }
void MODU::clbkPreStep(double simt, double simdt, double mjd)
{
char tmp[99]; sprintf(tmp, "PreStep %.9g", simdt); oapiWriteLog(tmp);
}
DLLCLBK void InitModule(HINSTANCE hModule)
{
oapiRegisterModule(new MODU(hModule));
}
Is that correct?