So, I’m creating an ATL project in visual studio 2008 using the wizard (recommended here – How to create ActiveX DLL in Visual C++ – and elsewhere)
But I can’t add any classes to my project. VS returns the following error:
atl classes can only be added to mfc exe and mfc regular dll projects or projects with full atl support
…the latter of which you’d think an atl project would have, right?
Can anyone offer a fix?
(I’ve tried both ticking and unticking ‘Support COM+ 1.0’ when creating the project – I’m not quite sure what to do with this option).
I discovered this thread on msdn and tried all suggested solutions. The only one that worked was identifying
'isAtlProject()'in the javascript and setting it to returntrue. That got me to the next dialog.However, having created the class, the ‘Add Method’ wizard would then silently fail to add all of the required code to the interface, header and cpp files. I made another thread about this. Turns out the reason for the latter bug was that intellisense was manually disabled (see other thread for details) :- to anyone reading this in future with the same problem, if you fix intellisense first maybe you won’t have to bodge the javascript? Give it a go at least!