void Writedata(szCmdData){ ofstream outfile(file1); if(outfile.is_open()) { outfile << szCmdData; outfile.close(); } }
void Thread1(void * arg) { .... ..... Writedata("text1"); }
void Thread2(void * arg) { .... .... Writedata("text1"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)