
Is this a bug of "module" attribute?
When I use module attribute in ATL project alone, as generated by the
wizard:
[ module(dll, uuid= "{ .... }", name="Foo", resource_name="IDR_FOO" ];
Compiler injects two macros in the generated class:
class CFooModule: public CAtlDllModule<CFooModule>
{
DECLARE_LIBID(__uuidof(Foo))
DECLARE_REGISTRY_APPID_RESOURCEID(IDR_FOO, "{ .... }")
Quote:
};
But if the module attribute is applied to my own class, like this:
[ module(dll, uuid= "{ .... }", name="Foo", resource_name="IDR_FOO" ]
class CMyFooModule
{
Quote:
};
Compiler injects only one macro in my class:
class CMyFooModule: public CAtlDllModule<CMyFooModule>
{
DECLARE_LIBID(__uuidof(Foo))
Quote:
};
That makes "resource_name" param in "module" attribute useless when applied
to a class. Is this a BUG? I hope this is not a "feature"....
Thanks,
CyB