case 90:
pLwPolyLine->nVertex1 = atoi(strValue);//nVertex1是顶点数
break;
if(pLwPolyLine->nVertex1 > 0)
{
pLwPolyLine->pVertex1 = new DXFENTVERTEX[pLwPolyLine->nVertex1];
ZeroMemory(pLwPolyLine->pVertex1, sizeof(DXFENTVERTEX)*pLwPolyLine->nVertex1);
}
break;//申请的内存用来存储顶点的坐标值case 10:
if(pLwPolyLine->nVertex1 > 0)
{
i++;
pLwPolyLine->pVertex1[i].Point.x = atof(strValue);//程序运行到这里说该指令的 内存不能为written
}
break;
90,10是我读的文件中的代码。
pLwPolyLine->nVertex1 = atoi(strValue);//nVertex1是顶点数
break;
if(pLwPolyLine->nVertex1 > 0)
{
pLwPolyLine->pVertex1 = new DXFENTVERTEX[pLwPolyLine->nVertex1];
ZeroMemory(pLwPolyLine->pVertex1, sizeof(DXFENTVERTEX)*pLwPolyLine->nVertex1);
}
break;//申请的内存用来存储顶点的坐标值case 10:
if(pLwPolyLine->nVertex1 > 0)
{
i++;
pLwPolyLine->pVertex1[i].Point.x = atof(strValue);//程序运行到这里说该指令的 内存不能为written
}
break;
90,10是我读的文件中的代码。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货