Any suggestions on this error.
FlatControl.obj : error LNK2019: unresolved external symbol "void __cdecl oapiUnregisterCustomControls(struct HINSTANCE__ *)" (?oapiUnregisterCustomControls@@YAXPAUHINSTANCE__@@@Z) referenced in function _opcDLLExit
This is for a attach/dettach pop up.
Code:
// DLL cleanup
DLLCLBK void opcDLLExit (HINSTANCE hDLL)
{
// Unregister the custom function in Orbiter
oapiUnregisterCustomCmd (g_Param_flat.dwCmd);
// Unregister custom dialog controls
oapiUnregisterCustomControls (hDLL);
}
FlatControl.obj : error LNK2019: unresolved external symbol "void __cdecl oapiUnregisterCustomControls(struct HINSTANCE__ *)" (?oapiUnregisterCustomControls@@YAXPAUHINSTANCE__@@@Z) referenced in function _opcDLLExit
This is for a attach/dettach pop up.