Attribute option for ATL applications (2008)
- From: Dan Marinescu <Dan Marinescu@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 3 Oct 2008 13:39:00 -0700
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
.
- Next by Date: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the l
- Next by thread: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the l
- Index(es):
Relevant Pages
|