Attribute option for ATL applications (2008)



Hi there,

I've noticed that the Attributed checkbox doesn't exist in Visual Studio
2008 (C++, New ATL Application). This is very regreattable, for obvious
reasons!

How to use it (workaround):

1. Use Visual Studio 2005, create an Attributed ATL application.
2. Import it in Visual Studio 2008 (of course, everything works, etc)
3. Add a new ATL Class, e.g. OLE DB Provider (you will notice that the the
attributed checkbox in the class generator wizard exists and of course, it's
checked.

Note: If you do not choose the provider-name careful enough, the IDL
attributes may find the autogenerated progid too long. The following had to
trimmed manually (wizard allowed me to enter strings beyond 38 (or 39) chars).

[
coclass,
threading(apartment),
vi_progid("AttrATLProviders.MyAttrATL2008Provider"),
progid("AttrProviders.MyAttrProvider.1"),
version(1.0),
uuid("7A0A18FC-6992-407D-88E9-2FB982F86FE7"),
helpstring("MyAttrProvider Class"),
registration_script("provider.rgs")
]

Anyway, what is going on with MSVC R&D team?!? Are you loosing features?!?

Hope you are all ok (it would be really nice to get that stupid checkbox
back in the ATL Application wizard...)

Regards,
Daniel
.



Relevant Pages

  • attributed checkbox missing in 2008...
    ... I've noticed that the Attributed checkbox doesn't exist in Visual Studio ... create an Attributed ATL application. ... The following had to trimmed manually (wizard allowed me to enter strings ...
    (microsoft.public.vc.atl)
  • Re: Changing to MinDependency introduces *crazy* errors ...
    ... CString instead, but I'm not sure if it's suitable either... ... > I'm building a COM ATL dll, that uses MFC to make a dialog. ... > class template invalid as template argument for template parameter ...
    (microsoft.public.vc.atl)
  • Re: ATL dual interface question, A very very strange question
    ... Microsoft MVP, MCSD ... visual studio 2003 and visual 6.0, the question same as VS 2005.So i think ... ATL simple COM object code generated from the ATL wizzard should work ... I am sure I have the administrator permissions. ...
    (microsoft.public.win32.programmer.ole)
  • ATL library bug? in VS2005 and CE6
    ... I am now working on Visual Studio 2006 SP1 and developing application ... for Windows Embedded CE6 platform. ... very impressed with the concept of WTL, (and I already know the VS2005 ... Please note, while I am utilizing WTL, this code is included in ATL ...
    (microsoft.public.windowsce.platbuilder)
  • Changing to MinDependency introduces *crazy* errors ...
    ... I'm building a COM ATL dll, that uses MFC to make a dialog. ... class template invalid as template argument for template parameter ...
    (microsoft.public.vc.atl)