静态的
能通过
就是运行时候报错
syntax error:missing ';'什么的
还有什么missing storage-class

解决方案 »

  1.   

    BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) 
    {
    // TODO: Add your specialized code here and/or call the base class
    if(
    !m_view_left.CreateStatic(this,1,2)||
    !m_view_left.CreateView(0,0,RUNTIME_CLASS(CSidView),CSize(100,0),pContext)||
    !m_view_right.CreateStatic(&m_view_left,2,1,WS_CHILD|WS_VISIBLE,m_view_left.IdFromRowCol(10,1))||
    !m_view_right.CreateView(0,0,RUNTIME_CLASS(Coplist),CSize(0,355),pContext)||
    !m_view_right.CreateView(1,0,RUNTIME_CLASS(Cinfoform),CSize(400,100),pContext)
      )
      return FALSE;
    else
         return TRUE;
    }
    运行的时候出现
    DEBUG ASSERTION FAILED
    FILE:WINSPLIT。CPP
    LINE:349
    .......
      

  2.   

    if(
    !m_view_left.CreateStatic(this,1,2)¦¦
    !m_view_left.CreateView(0,0,RUNTIME_CLASS(CSidView),CSize(100,0),pContext)¦¦
    !m_view_right.CreateStatic(&m_view_left,2,1,WS_CHILD¦WS_VISIBLE,m_view_left.IdFromRowCol(10,1))¦¦
    !m_view_right.CreateView(0,0,RUNTIME_CLASS(Coplist),CSize(0,355),pContext)¦¦
    !m_view_right.CreateView(1,0,RUNTIME_CLASS(Cinfoform),CSize(400,100),pContext)
      )
      return FALSE;存在问题……,分开试试!
      

  3.   

    if(
    !m_view_left.CreateStatic(this,1,2)¦¦
    !m_view_left.CreateView(0,0,RUNTIME_CLASS(CSidView),CSize(100,0),pContext)¦¦
    !m_view_right.CreateStatic(&m_view_left,2,1,WS_CHILD¦WS_VISIBLE,m_view_left.IdFromRowCol(10,1))¦¦
    !m_view_right.CreateView(0,0,RUNTIME_CLASS(Coplist),CSize(0,355),pContext)¦¦
    !m_view_right.CreateView(1,0,RUNTIME_CLASS(Cinfoform),CSize(400,100),pContext)
      )
      return FALSE;分开写试试……
      

  4.   

    m_view_left.IdFromRowCol(10,1)
    -〉m_view_left.IdFromRowCol(0,1)
      

  5.   

    这与是否分开有关系吗?!
    好,让我先试一试TO:: jiangsheng(蒋晟) 
    改了之后,变成WINFORM。CPP文件出错了
    还是运行时出错
      

  6.   

    int WindowSizeX,WindowSizeY;
    WindowSizeX=int(ClientRect.Width());
    WindowSizeY=int(ClientRect.Height());
    int nCol;
    int nRow;
    if(!m_wndSplitter.CreateStatic(this,2,2,WS_CHILD | WS_VISIBLE))
    {
    TRACE0("Failed to create split Bar");
    return FALSE;
    }
    for(nCol=0;nCol<2;nCol++)
    for(nRow=0;nRow<2;nRow++)
    {
    if(!m_wndSplitter.CreateView(nRow,nCol,RUNTIME_CLASS(CView),CSize(WindowSizeX,WindowSizeY),pContext))
    {
    TRACE0("Failed to create view");
    }
    这是我以前用的程序,分割成4个视图,效果还可以