示例#1
0
void ObjReadLineInfos (FILE* F, unsigned long Pos, ObjData* O)
/* Read the line infos from a file at the given position */
{
    unsigned I;

    /* Seek to the correct position */
    FileSetPos (F, Pos);

    /* Read the data */
    O->LineInfoCount = ReadVar (F);
    O->LineInfos     = xmalloc (O->LineInfoCount * sizeof (O->LineInfos[0]));
    for (I = 0; I < O->LineInfoCount; ++I) {
        O->LineInfos[I] = ReadLineInfo (F, O);
    }
}
示例#2
0
BOOL COutLineSetDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	this->SetWindowText("外线设置");
	pResult=false;
	m_LineNo.EnableWindow(false);
	if(!ReadLineInfo())
	{
		MessageBox("系统读取数据失败!!","Error",MB_OK);
		this->CloseWindow();
	}
	return TRUE; 
}
示例#3
0
BOOL CInLineSetDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	this->SetWindowText("内线设置");
	pResult=false;		//默认状态
	if(!ReadLineInfo())
	{
		MessageBox("系统读取数据失败!!","Error",MB_OK);
		OnCancel();
		return false;
	}
	m_LineNo.EnableWindow(false);	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}