Ignore:
Timestamp:
May 21, 2008, 1:16:21 PM (16 years ago)
Author:
dai_9181
Message:

ResourceManagerクラスを追加。既存のリソース管理モジュールの置き換えを行った。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/abdev/FileOperation.cpp

    r621 r622  
    5757    return buffer;
    5858}
    59 _int8 WriteBuffer(char *path,char *buffer,int length, bool isEnableError){
     59_int8 WriteBuffer(const std::string &path,char *buffer,int length, bool isEnableError){
    6060    HANDLE hFile;
    6161    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);
    6363    if(hFile==INVALID_HANDLE_VALUE){
    6464        char temporary[MAX_PATH];
     
    7575    return 1;
    7676}
    77 _int8 WriteBuffer_NonErrMsg(char *path,char *buffer,int length){
     77_int8 WriteBuffer_NonErrMsg(const std::string &path,char *buffer,int length){
    7878    return WriteBuffer( path, buffer, length, false );
    7979}
Note: See TracChangeset for help on using the changeset viewer.