В общем, есть проект в Visual C++ 6.0. , есть функция. Как сделать в программе, чтобы dout[0] можно было вводить в самом интерфейсе?void CACR120WriteMasterKeyDlg::OnBtnWriteBlock()
{
BYTE dout[15];
dout[0] = 65; // [i]Я так понял dout[0] надо привязать к EditSID2(),как это сделать?[/i] //
dout[1] =67;
dout[2] =83;
dout[3] =77;
dout[4] =105;
dout[5] =70;
dout[6] =97;
dout[7] =114;
dout[8] =101;
dout[9] =32;
dout[10] =83;
dout[11] =97;
dout[12] =109;
dout[13] =112;
dout[14] =108;
dout[15] =101;
//(unsigned char) IDC_EditSID2;
//Write to Sector 1 Block 1 = Block 5
retcode = ACR120_Write(rHandle, SID, 5, dout);
//'check if retcode is error
if (retcode < 0)
{
StrMsg.Format("Error Writing to Block 5: %d",retcode);
LstIndx=m_List.AddString(StrMsg);
}
else
{
StrMsg.Format("Write to Block 5 Success: %d", retcode);
LstIndx=m_List.AddString(StrMsg);
}
m_List.SetCurSel(LstIndx);
}
[b]
void CACR120WriteMasterKeyDlg::OnChangeEditSID2() [/b]
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CDialog::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
}