Is this a bug of "module" attribute? 
Author Message
 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



Wed, 08 Sep 2004 17:15:10 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. help for problem of module with "%"

2. Equivalent of "VB Modules" in C#

3. "attributed" ATL project with VS.NET

4. I am going to study "C"

5. Attribute "id" causes error in ATL7

6. ODBC Error - "Restricted data type attribute violation", code 07006

7. Can I use "Is" with attributes

8. Question on "static" attribute

9. Class "Attribute" and Proxy SOAP

10. Optimizer Bug - "optimize for speed" and "inline any" bug

11. Linking "C" routines in "C++" modules

12. Linking "C" routines in "C++" modules

 

 
Powered by phpBB® Forum Software