changing a project from Win32 DLL to an ATL DLL (i.e. containinga simple ATL object)

A

Anonymous

I have a Win32 DLL project that needs to be refactored to support ATL.
Specifically, I need to expose one COM object, that makes use of the
library functionality.

I tried adding a 'Simple ATL object' class directly to the project - but
that (unsuprisingly), failed. I then changed the project settings and
specified 'Use of ATL' from 'Not Using ATL' to 'Dynamic link to ATL',
However, when I tried to add a 'Simple ATL object' class again, I got
the same error:

'ATL objects can only be added to MFC EXE and MFC Regular DLL projects
or projects with full ATL support'

Can anyone tell me how I may modify my project settings so I may add the
'Simple ATL object' class?
 
F

Frank Hickman

Anonymous said:
I have a Win32 DLL project that needs to be refactored to support ATL.
Specifically, I need to expose one COM object, that makes use of the
library functionality.

I tried adding a 'Simple ATL object' class directly to the project - but
that (unsuprisingly), failed. I then changed the project settings and
specified 'Use of ATL' from 'Not Using ATL' to 'Dynamic link to ATL',
However, when I tried to add a 'Simple ATL object' class again, I got the
same error:

'ATL objects can only be added to MFC EXE and MFC Regular DLL projects or
projects with full ATL support'

Can anyone tell me how I may modify my project settings so I may add the
'Simple ATL object' class?

Create a new ATL project and move your existing code to it.

--
============
Frank Hickman
NobleSoft, Inc.
============
Replace the _nosp@m_ with @ to reply.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top