|
FILE *fp;
String strPath = "G:\\FileRecv\\";
strPath += "aaa.txt";
if( (fp=fopen(strPath.c_str() , "wb")) = NULL)
{
ShowMessage("FileOpen Error");
return;
}
for(int i = 0 ; i < 10 ; i++)
{
char szBuf[10];
strcpy(szBuf , "111111111");
fwrite(szBuf , sizeof(char) , 10 , fp);
}
fclose(fp);
이 렇게 했을시 EAccessVioation with message 'Access violation at address 326663a1 in module ~~~~' . Read of address
F8344CFC' 에러가 뜨는데 그이유를 모르겠습니다....
|