BYTE nField0,nField1,nField2,nField3;
m_ipaddd.GetAddress(nField0,nField1,nField2,nField3);
//m_ipadd.SetAddress(nField0,nField1,nField2,nField3);
CString strData1, strData2, strData3, strData4;
strData1.Format(_T("%.3d"), nField0 );
strData2.Format(_T("%.3d"), nField1 );
strData3.Format(_T("%.3d"), nField2 );
strData4.Format(_T("%.3d"), nField3);
CString ipaddress=strData1+'.'+strData2+'.'+strData3+'.'+strData4;
MessageBox(ipaddress);
时间: 2024-10-16 16:30:37