- Joined
- Jan 13, 2008
- Messages
- 2,302
- Reaction score
- 6
- Points
- 38
- Location
- Atlanta, GA, USA, North America
I'm working on a system for Orbiter that requires a realtime data to be fed to an MFD whether or not the MFD is running. Unless I'm really missing something here, I've determined that my best solution would be to pass data from a plugin which has access to prestep/poststep functions for the entire simulation. I'm having some problems getting a "plugin" to be defined in the same .dll as the MFD which would make passing data very easy as I could declare something in the global scope and read/write to/from that. But, I'm having problems declaring a class derived from the Module class in the same header file as my MFD.
The only way I've been able to make it compile at all was to declare the derived module class inside namespace oapi, but in initmodule, I get unresolved external symbol linker errors when I try newing an instance of the module in order to pass a pointer to oapiRegisterModule().
Is there a step I'm just missing here?
Thanks for any help you can provide.
Zatnikitelman-Matt
The only way I've been able to make it compile at all was to declare the derived module class inside namespace oapi, but in initmodule, I get unresolved external symbol linker errors when I try newing an instance of the module in order to pass a pointer to oapiRegisterModule().
Is there a step I'm just missing here?
Thanks for any help you can provide.
Zatnikitelman-Matt