请问如何在VC6.0或.net里新建一个结构体或无父类的类 什么项目??托管类无法建立无父类的类,因为所有托管类都是从object继承另外考虑你的命名空间问题 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 "未声明标识符"1)把这个文件拷贝到相应的工程中。2)然后添加现有项,需要添加.cpp和.h文件。3)打开.cpp和.h文件看能不能打开,如果能,则 执行下面步骤4)定义类,添加“.h"文件。然后重新编译,看能不能行。如果还有未声明的标示符,则需要看LZ自己定义的类中是否声明了函数,这些函数是否有实现,哪怕是空的实现也可以。 #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 functionsprotected: //{{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_) #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 functionsprotected: //{{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_) 剪贴板中复制的是一网页,如何获取剪贴板中的图片地址 () 问一个简单的MFC问题,vc6.0 ★★★★VS2005多文档程序下图形实时更新的问题 vc 的关于界面设置的问题 请问一个鼠标钩子的问题? 请问如何把图像文件保存到XML文件中 dll调用中release版本和debug版本的问题! 如何获得CRichEditCtrl控件中当前焦点的坐标值? vc中,如何取出一个txt文件中的各行,并且将其每一行存在一个数组的各个元素中? 关于DAO的问题,项目急需 想了好多天没有解决的关于VC++ 调用DLL内部函数问题 CWinApp _afxOleWinApp;是做什么的?
1)把这个文件拷贝到相应的工程中。
2)然后添加现有项,需要添加.cpp和.h文件。
3)打开.cpp和.h文件看能不能打开,如果能,则 执行下面步骤
4)定义类,添加“.h"文件。
然后重新编译,看能不能行。
如果还有未声明的标示符,则需要看LZ自己定义的类中是否声明了函数,这些函数是否有实现,哪怕是空的实现也可以。
#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_)
#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_)