急救,在MFC中两个类中公用一个struct 类型 有以下问题
小落勇士 2005-12-01 08:53:21 // mywsDlg.h : header file
//
#include"LSock.h"
/////////////////////////////////////////////////////////////////////////////
// CMywsDlg dialog
class CMywsDlg : public CDialog
{
// Construction
public:
CMywsDlg(CWnd* pParent = NULL); // standard constructor
// void acceptclient();
// data m_dat; //就是这个data 类型
// LSock.h : header file
//
class CMywsDlg;
typedef struct{
char m_strname[255];
char m_bddata[255];
bool m_bonline;
} data; //data 类型的定义
当编译时,是没有错误的,但是一执行,
windows 会提醒你
myws.exe 遇到问题需要关闭。我们对此引起的不便表示抱歉。