char *pcontent ;
--赋值:(读文件)
int iFileHandle = FileOpen(lpFilePath, fmOpenRead);
int iFileLength = FileSeek(iFileHandle,0,2);
FileSeek(iFileHandle,0,0);
char *pbuff=new char[iFileLength+1];
int iBytesRead = FileRead(iFileHandle, pbuff, iFileLength);
FileClose(iFileHandle);
strcpy(pcontent,pbuff);
delete pbuff;
if(pcontent != NULL && strlen(pcontent)> 0 ) delete [] pcontent; //提示访问地址访问非法
--赋值:(读文件)
int iFileHandle = FileOpen(lpFilePath, fmOpenRead);
int iFileLength = FileSeek(iFileHandle,0,2);
FileSeek(iFileHandle,0,0);
char *pbuff=new char[iFileLength+1];
int iBytesRead = FileRead(iFileHandle, pbuff, iFileLength);
FileClose(iFileHandle);
strcpy(pcontent,pbuff);
delete pbuff;
if(pcontent != NULL && strlen(pcontent)> 0 ) delete [] pcontent; //提示访问地址访问非法