"AcGsView *view
Error: pointer to incomplete class type is not allowed"
I get this error with the following code in visual studio 2012:
static void VCMControl_VCM_START() {
AcDbDatabase * pDb = acdbHostApplicationServices()->workingDatabase();
if (!pDb->tilemode()) {
acutPrintf(_T("This command is only for Model space.\n"));
return;
}
resbuf cvport;
acedGetVar(_T("CVPORT"), &cvport);
AcGsView *view = acgsGetGsView(cvport.resval.rint, true);
double aspectRatio = view->fieldWidth() / view->fieldHeight();
}
How can I solve it?
Solved! Go to Solution.
Solved by ha62791. Go to Solution.
By the way - you can omit the tilemode() check by registering your command with the ACRX_CMD_NOPAPERSPACE flag.