在xxxDLG.h中声明(类的外面)
typedef struct strcc
{
}yyy;
在另一个自己加的aaa.h和aaa.cpp文件里
在aaa.h中的类中不能声明
yyy * bianliang;
该怎么调用?
直接那样写编译通不过啊。
在xxxDLG.cpp中包含了include "aaa.h"
typedef struct strcc
{
}yyy;
在另一个自己加的aaa.h和aaa.cpp文件里
在aaa.h中的类中不能声明
yyy * bianliang;
该怎么调用?
直接那样写编译通不过啊。
在xxxDLG.cpp中包含了include "aaa.h"
extern struct strcc
{
}yyy;
直接就可以用yyy结构体了
{
}yyy;
你要声明在xxxDLG.cpp文件外部作为全局变量使用
typedef struct strcc
{
}yyy;
建议放在App的头文件里面声明
位置应该和你现在的一样!
添加
struct strcc;
strcc* pcc;在要使用的地方
#include "Dialog*.h"
typedef struct strcc
{
};
结构体的对象在源文件里定义strcc yyy;
就可以啊!
typedef struct strcc
{
}yyy;
class CTestApp : public CWinApp