Check the second argument to your ACRX_DXF_DEFINE_MEMBERS macro. It should be AcDbEntity to match the class declaration.

--
Owen Wengerd
ManuSoft