Ignore:
Timestamp:
Apr 4, 2008, 7:47:07 PM (17 years ago)
Author:
dai_9181
Message:

構成管理を変更中・・・(いったんコミット)

File:
1 edited

Legend:

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

    r99 r475  
     1#include "stdafx.h"
     2
    13#include "Common.h"
    24
     
    1719}
    1820
    19 char *ReadBuffer(char *path){
     21char *ReadBuffer( const std::string &path ){
    2022    extern HANDLE hHeap;
    2123    int i;
     
    2426    HANDLE hFile;
    2527
    26     hFile=CreateFile(path,GENERIC_READ,FILE_SHARE_READ|FILE_SHARE_WRITE,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
     28    hFile=CreateFile(path.c_str(),GENERIC_READ,FILE_SHARE_READ|FILE_SHARE_WRITE,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
    2729    if(hFile==INVALID_HANDLE_VALUE){
    2830        //"\"%s\" ファイルの読み込みに失敗しました。"
    29         sprintf(temporary,STRING_ERROR_CANT_FILEOPEN,path);
     31        sprintf(temporary,STRING_ERROR_CANT_FILEOPEN,path.c_str());
    3032        MessageBox(hOwner,temporary,STRING_ERROR,MB_OK|MB_ICONEXCLAMATION);
    3133
     
    3941    return buffer;
    4042}
    41 char *ReadBuffer_NonErrMsg(char *path){
     43char *ReadBuffer_NonErrMsg( const std::string &path ){
    4244    extern HANDLE hHeap;
    4345    int i;
     
    4648    HANDLE hFile;
    4749
    48     hFile=CreateFile(path,GENERIC_READ,FILE_SHARE_READ|FILE_SHARE_WRITE,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
     50    hFile=CreateFile(path.c_str(),GENERIC_READ,FILE_SHARE_READ|FILE_SHARE_WRITE,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
    4951    if(hFile==INVALID_HANDLE_VALUE) return 0;
    5052    i=GetFileSize(hFile,0);
Note: See TracChangeset for help on using the changeset viewer.