K
ken
hello,
class App {
};
class Scene {
static Scene *s_pScene;
static Scene * instance() {
if (!s_pScene)
s_pScene = new Scene;
return s_pScene;
};
Scene * Scene::s_pScene = 0;
//---
the App *app is passed to a plugin loaded by LoadLibrary...
but the Scene::instace() return null always, why?
class App {
};
class Scene {
static Scene *s_pScene;
static Scene * instance() {
if (!s_pScene)
s_pScene = new Scene;
return s_pScene;
};
Scene * Scene::s_pScene = 0;
//---
the App *app is passed to a plugin loaded by LoadLibrary...
but the Scene::instace() return null always, why?