什么项目??
托管类无法建立无父类的类,因为所有托管类都是从object继承
另外考虑你的命名空间问题

解决方案 »

  1.   

    "未声明标识符"
    1)把这个文件拷贝到相应的工程中。
    2)然后添加现有项,需要添加.cpp和.h文件。
    3)打开.cpp和.h文件看能不能打开,如果能,则 执行下面步骤
    4)定义类,添加“.h"文件。
    然后重新编译,看能不能行。
    如果还有未声明的标示符,则需要看LZ自己定义的类中是否声明了函数,这些函数是否有实现,哪怕是空的实现也可以。
      

  2.   

    #define AFX_InsertPoint_H__B34E25D0_2B40_4D41_BFF4_1742B2AE2B6E__INCLUDED_#if _MSC_VER > 1000
    #pragma once
    #endifclass InsertPoint
    {
    public:
    InsertPoint();
    ~InsertPoint();
    public:
    CGeoDataPoint* UnknownPoints;
    int UnknownPointsNum;
    CGeoDataPoint* KnownPoints;
    int KnownPointsNum;
    double A_Value,C0_Value,C1_Value;
    int Mode;//哪一种模型 1为球形 2 为指数型 3 为高斯型 //计算中用到的数组
    int nDims;// 值为N+1
    Mm MmLeftArray;   
    Mm MmRightArray;  
    Mm MmWeightArray;
    public:
    //形成左侧矩阵
    BOOL GetLeftArray();
    //形成右侧矩阵
    BOOL GetRightArray(CGeoDataPoint CrrentUnknowPoint);
    double GetH_Value( double distance );
    BOOL GetUnkonwnPointValue(CGeoDataPoint &CrrentUnknowPoint);
    //BOOL InsertPoint(); //和右侧矩阵相乘 //计算输出值 // Generated message map functions
    protected:
    //{{AFX_MSG(CInsertPoint)
    // NOTE - the ClassWizard will add and remove member functions here.
    //}}AFX_MSG
    //DECLARE_MESSAGE_MAP()
    };///////////////////////////////////////////////////////////////////////////////{{AFX_INSERT_LOCATION}}
    // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
    #endif // !defined(AFX_InsertPoint_H__B34E25D0_2B40_4D41_BFF4_1742B2AE2B6E__INCLUDED_)
      

  3.   

    #define AFX_InsertPoint_H__B34E25D0_2B40_4D41_BFF4_1742B2AE2B6E__INCLUDED_#if _MSC_VER > 1000
    #pragma once
    #endifclass InsertPoint
    {
    public:
    InsertPoint();
    ~InsertPoint();
    public:
    CGeoDataPoint* UnknownPoints;
    int UnknownPointsNum;
    CGeoDataPoint* KnownPoints;
    int KnownPointsNum;
    double A_Value,C0_Value,C1_Value;
    int Mode;//哪一种模型 1为球形 2 为指数型 3 为高斯型 //计算中用到的数组
    int nDims;// 值为N+1
    Mm MmLeftArray;   
    Mm MmRightArray;  
    Mm MmWeightArray;
    public:
    //形成左侧矩阵
    BOOL GetLeftArray();
    //形成右侧矩阵
    BOOL GetRightArray(CGeoDataPoint CrrentUnknowPoint);
    double GetH_Value( double distance );
    BOOL GetUnkonwnPointValue(CGeoDataPoint &CrrentUnknowPoint);
    //BOOL InsertPoint(); //和右侧矩阵相乘 //计算输出值 // Generated message map functions
    protected:
    //{{AFX_MSG(CInsertPoint)
    // NOTE - the ClassWizard will add and remove member functions here.
    //}}AFX_MSG
    //DECLARE_MESSAGE_MAP()
    };///////////////////////////////////////////////////////////////////////////////{{AFX_INSERT_LOCATION}}
    // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
    #endif // !defined(AFX_InsertPoint_H__B34E25D0_2B40_4D41_BFF4_1742B2AE2B6E__INCLUDED_)