Changeset 622 in dev for trunk/ab5.0/abdev/abdev/FileOperation.cpp
- Timestamp:
- May 21, 2008, 1:16:21 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/abdev/FileOperation.cpp
r621 r622 57 57 return buffer; 58 58 } 59 _int8 WriteBuffer(c har *path,char *buffer,int length, bool isEnableError){59 _int8 WriteBuffer(const std::string &path,char *buffer,int length, bool isEnableError){ 60 60 HANDLE hFile; 61 61 DWORD dw; 62 hFile=CreateFile(path ,GENERIC_WRITE,0,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL);62 hFile=CreateFile(path.c_str(),GENERIC_WRITE,0,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL); 63 63 if(hFile==INVALID_HANDLE_VALUE){ 64 64 char temporary[MAX_PATH]; … … 75 75 return 1; 76 76 } 77 _int8 WriteBuffer_NonErrMsg(c har *path,char *buffer,int length){77 _int8 WriteBuffer_NonErrMsg(const std::string &path,char *buffer,int length){ 78 78 return WriteBuffer( path, buffer, length, false ); 79 79 }
Note: See TracChangeset
for help on using the changeset viewer.