Updatedata (TRUE); CFiledialog DLG (True, NULL, NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, "All files (*. *) | *. * |"); If (DLG.Domodal () == idok) {cfile file; if; = (file.open (DLG.GetPathname (), cfile :: modeRead) {myste stru1; stru1.sttrc2 = mdx_ip; stru1.sttri1 = mdx_comi; stru1.strfile = file; TT2-> Sendto (& stru1, sizeof (STRU1) , MDX_Port, LPCTSTSTR (MDX_IP), 0);}} Updatedata (FALSE); / ******************************************** ************************ * Completely available char * PBUF = New Char [1025]; int ibufsize = 1024; int REV; CSTRING CREVS; INT Ilen ; REV = TT2-> Receive (PBUF, IBUFSIZE); if (REV! = Socket_ERROR) {PBUF [ibufsize] = null; buff [Nread] = 0; // Terminate the string cstring sztemp; crevs = pbuf; MDX_ListBox.AddString (CREVS); delete PBUF;} / ************************************************* *************** / * int REV; myste stru2; Memset (& STRU2, 0, sizeof (myste)); Rev = TT2-> Receive ((char *) & stru2, Sizeof (Myste)); if (REV! = Socket_ERROR) {mdx_listbox.addstring (stru2.sttrc2);} * / / ******************************** ************************************** / CHAR * PBUF = New char [1025]; int bufsize = 1024; int REV; REV = TT2-> Receive (PBUF, IBUFSIZE); if (REV! = Socket_ERROR) {myste * stru2 = (myste *) PBUF; cstring m2; m2.Format ("% D", stru2-> sttri1); mdx_listbox.addstring (m2); mdx_listbox.addstring (stru2-> sttrc2);} / ******************** ***************************************** /