This is a part of my code:
And when this runs I always get illegal operation message or "abnormal program termination" message.Code:void openfile(void *P){ GetWindowText(dropdown,tfile,260); file=FtpOpenFile(say,tfile,GENERIC_READ,FTP_TRANSFER_TYPE_ASCII,0); InternetReadFile(file,file_contents,100000,&car); InternetCloseHandle(file); add=file_contents; std::string::size_type pos = -1; while((pos=add.find("\n",pos+1))!=std::string::npos){ add.replace(pos,1,"\r\n"); } *(std::copy(add.begin(), add.end() - add.begin() < 256 ? add.end() : add.begin() + 255, file_contents)) = 0; SetWindowText(edit,file_contents); return; }



LinkBack URL
About LinkBacks


