声明了一个结构体如下
public:
//构造一个结构体,保存历史数据
struct z1 
{
CString Time;
CString Channel[24];
struct z1 *next;
};
程序代码是这样的:
struct z1 *h=NULL,*newAction;
newAction=(struct z1*)malloc(sizeof(struct z1));
newAction->Time = L"test";运行到
newAction->Time = L"test";
程序中断,提示如下:
atlsimpstr.h int GetLength() const throw()
{
return( GetData()->nDataLength );
}请教是不能这样赋值,还是我声明错了?谢谢!