rhcad/x3py — Issue #3: Cannot Export two Classes in a Plugin?
Author: wesleywu2012
Created: 2012-02-28 04:25:55+00:00
State: open

I added a new class CSimple2 in the example project "plsimple", which is almost the same as CSimple except clsid and class name.
Also, in module.cpp:
XBEGIN_DEFINE_MODULE()
XDEFINE_CLASSMAP_ENTRY(CSimple)
XDEFINE_CLASSMAP_ENTRY(CSimple2)
XEND_DEFINE_MODULE_DLL()

But, in consoledemo, I cannot load the class CSimple2 (x3::Object q(test_clsid2) ==> q would be NULL).

Also, The class CSimple would not be Loaded when I alter module.cpp(in Project plsimple) as below:
XBEGIN_DEFINE_MODULE()
XDEFINE_CLASSMAP_ENTRY(CSimple2)
XDEFINE_CLASSMAP_ENTRY(CSimple)
XEND_DEFINE_MODULE_DLL()