level 5
woshuia000
楼主
有一个类A
class AFX_EXT_CLASS A : public CObject
{
protected:
DECLARE_DYNAMIC(A)
public:
A();
~A();
public:
int m_iPrgID;
CWnd* pParentWnd;
int m_Scalez,scale;
double RadiusSmooth,LengthSmooth,RotateAngle;
//路径和文件名
CString datafilepath;
CString dfname;
int MetricUnit; //度量单位:0-米制,1-英制,2-经纬度
}
调用
A a;
a.pParentWnd = NULL;
a.MetricUnit=0;
//下面语句出现内存错误 m_strRootPath是CString类型的路径
a.datafilepath = m_strRootPath;
2013年07月26日 12点07分
1
class AFX_EXT_CLASS A : public CObject
{
protected:
DECLARE_DYNAMIC(A)
public:
A();
~A();
public:
int m_iPrgID;
CWnd* pParentWnd;
int m_Scalez,scale;
double RadiusSmooth,LengthSmooth,RotateAngle;
//路径和文件名
CString datafilepath;
CString dfname;
int MetricUnit; //度量单位:0-米制,1-英制,2-经纬度
}
调用
A a;
a.pParentWnd = NULL;
a.MetricUnit=0;
//下面语句出现内存错误 m_strRootPath是CString类型的路径
a.datafilepath = m_strRootPath;
