/ ************************************************** **** // * Complete can use 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 (buff);
CREVS = PBUF; MDX_ListBox.Addstring (CREVS); DELETE PBUF;
} / ******************************************************* ***** // * int REV;
MYSTE STRU2; MEMSET (Myste)); Rev = TT2-> Receive ((char *) & structure; if (a)); if (REV! = Socket_ERROR) {mdx_listbox.addstring (stru2.sttrc2) } * // *************************************************** ******** /
Char * pbuf = new char [1025]; int ibufsize = 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);} / ***************************************** ******************* /
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);