Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
I have an ATL COM project which I want to port to 64 bit.
After changing the platform to x64 and starting the build I get among other errors the following
ATL::CComContainedObject<contained>: C2259 Cannot instantiate abstract class
in atlcom.h
I also get this error
C2338 CAtlDllModuleT<T> must be used with either _WINDLL or _USRDLL
in atlbase.h
It compiles fine on 32bit. Does anyone have an idea of how to solve this?
I have found this similar question and answer, but I can't understand how to apply it in my case.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/d6144eaa-fa37-4133-87a0-75a06633209b/compiling-64bit-results-in-a-2259-cannot-instantiate-abstract-class?forum=vclanguage
I have posted a similar broader question earlier:
ATL COM 32-bit dll to 64-bit non-COM dll
–
–
Thanks for contributing an answer to Stack Overflow!
-
Please be sure to
answer the question
. Provide details and share your research!
But
avoid
…
-
Asking for help, clarification, or responding to other answers.
-
Making statements based on opinion; back them up with references or personal experience.
To learn more, see our
tips on writing great answers
.