定义多了程序就报错了麻~

解决方案 »

  1.   

    是在某个内存地址A引用某个地址B,发生错误,B不能为读不是重名,换了很多名字阿
    也不是类型我换INT不行,BOOL不行,char也不行。
    反正加一个就错,少一个就没问题……
      

  2.   

    //{{AFX_DATA(CRateDlg)
    enum { IDD = IDD_RATE_DIALOG };
    CStatic m_graph;
    CButton m_cancle;
    CButton m_start;
    CButton m_apply;
    CButton m_browse;
    CString m_set;
    CString m_dlg;
    CString m_imputno;
    CString m_trainno;
    bool isapply;
    double *m_Fdata;
    int count;
    int n;
    CNetWork *NetApp;
    double* temparray;
    CString* Ctemparray;
    CWinThread* TrainThread;
    BOOL EnableTrain;
    double time;
    double error;
    int CountTime;
    BOOL TerminateThread;
    CString m_setwetname;
    int *xPoint;
    int *yPoint;
    int RyPoint;
    int nowP;
    double ErrorMax;
    BOOL EnableOpenE;
    //}}AFX_DATA
    再加一个就挂!
      

  3.   

    AFX_DATA段里的内容是Wizard自己用的,你的变量最好不要加到里面。
      

  4.   

    现在又好了,简直莫名其妙的……没好以前,我加在AFX_DATA外面也是一样有问题。
      

  5.   

    我也遇到过这个问题,当时把 Debug里的文件删了重新编译就好了,后来想弄清楚是怎么回事,可惜没再遇见这种情况。
      

  6.   

    winterhp(),我也后悔阿。他提示是在某个内存地址A引用某个地址B,发生错误,B不能为读
    当时看一个dubug就好了阿。哎……