Changeset 769 in dev
- Timestamp:
- Mar 28, 2009, 12:12:58 PM (16 years ago)
- Location:
- trunk/ab5.0
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/RSrcSection.cpp
r750 r769 98 98 foreach( const ActiveBasic::Common::ResourceItem &resourceItem, compiler.resourceManager.cursorResources ) 99 99 { 100 hFile=CreateFile(resourceItem.filepath.c_str(),GENERIC_READ, 0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);100 hFile=CreateFile(resourceItem.filepath.c_str(),GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); 101 101 if(hFile==INVALID_HANDLE_VALUE){ 102 102 compiler.errorMessenger.Output(23,resourceItem.filepath.c_str(),-1); … … 118 118 foreach( const ActiveBasic::Common::ResourceItem &resourceItem, compiler.resourceManager.bitmapResources ) 119 119 { 120 hFile=CreateFile(resourceItem.filepath.c_str(),GENERIC_READ, 0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);120 hFile=CreateFile(resourceItem.filepath.c_str(),GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); 121 121 if(hFile==INVALID_HANDLE_VALUE){ 122 122 compiler.errorMessenger.Output(23,resourceItem.filepath.c_str(),-1); … … 130 130 foreach( const ActiveBasic::Common::ResourceItem &resourceItem, compiler.resourceManager.iconResources ) 131 131 { 132 hFile=CreateFile(resourceItem.filepath.c_str(),GENERIC_READ, 0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);132 hFile=CreateFile(resourceItem.filepath.c_str(),GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); 133 133 if(hFile==INVALID_HANDLE_VALUE){ 134 134 compiler.errorMessenger.Output(23,resourceItem.filepath.c_str(),-1); … … 661 661 //カーソルリソース 662 662 for(i3=0,i6=0;i3<static_cast<int>(compiler.resourceManager.cursorResources.size());i3++){ 663 hFile=CreateFile(compiler.resourceManager.cursorResources[i3].filepath.c_str(),GENERIC_READ, 0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);663 hFile=CreateFile(compiler.resourceManager.cursorResources[i3].filepath.c_str(),GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); 664 664 if(hFile==INVALID_HANDLE_VALUE){ 665 665 compiler.errorMessenger.Output(23,compiler.resourceManager.cursorResources[i3].filepath.c_str(),-1); … … 741 741 //ビットマップリソース 742 742 for(i3=0;i3<static_cast<int>(compiler.resourceManager.bitmapResources.size());i3++){ 743 hFile=CreateFile(compiler.resourceManager.bitmapResources[i3].filepath.c_str(),GENERIC_READ, 0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);743 hFile=CreateFile(compiler.resourceManager.bitmapResources[i3].filepath.c_str(),GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); 744 744 if(hFile==INVALID_HANDLE_VALUE){ 745 745 compiler.errorMessenger.Output(23,compiler.resourceManager.bitmapResources[i3].filepath.c_str(),-1); … … 769 769 //アイコンリソース 770 770 for(i3=0,i6=0;i3<static_cast<int>(compiler.resourceManager.iconResources.size());i3++){ 771 hFile=CreateFile(compiler.resourceManager.iconResources[i3].filepath.c_str(),GENERIC_READ, 0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);771 hFile=CreateFile(compiler.resourceManager.iconResources[i3].filepath.c_str(),GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); 772 772 if(hFile==INVALID_HANDLE_VALUE){ 773 773 compiler.errorMessenger.Output(23,compiler.resourceManager.iconResources[i3].filepath.c_str(),-1); … … 852 852 if( !compiler.resourceManager.manifestFilePath.empty() ) 853 853 { 854 hFile=CreateFile(compiler.resourceManager.manifestFilePath.c_str(),GENERIC_READ, 0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);854 hFile=CreateFile(compiler.resourceManager.manifestFilePath.c_str(),GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); 855 855 if(hFile==INVALID_HANDLE_VALUE){ 856 856 compiler.errorMessenger.Output(59,compiler.resourceManager.manifestFilePath.c_str(),-1); -
trunk/ab5.0/abdev/ab_common/src/Lexical/Source.cpp
r760 r769 320 320 bool Text::ReadFile( const std::string &filePath ){ 321 321 //ファイルオープン 322 HANDLE hFile=CreateFile(filePath.c_str(),GENERIC_READ, 0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);322 HANDLE hFile=CreateFile(filePath.c_str(),GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); 323 323 if(hFile==INVALID_HANDLE_VALUE){ 324 return false;324 DebugBreak(); return false; 325 325 } 326 326 -
trunk/ab5.0/abdev/ab_common/src/ResourceManager/ResourceManager.cpp
r662 r769 22 22 HANDLE hFile; 23 23 24 hFile=CreateFile(resourceFilePath.c_str(),GENERIC_READ, 0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);24 hFile=CreateFile(resourceFilePath.c_str(),GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); 25 25 if(hFile==INVALID_HANDLE_VALUE) 26 26 { -
trunk/ab5.0/abdev/abdev/DocumentAdvice.cpp
r705 r769 186 186 if(i3==MdiInfo.size()){ 187 187 //ファイルから開く 188 ATL::CHandle fh(CreateFile(temporary,GENERIC_READ, 0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL));188 ATL::CHandle fh(CreateFile(temporary,GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL)); 189 189 if(fh==INVALID_HANDLE_VALUE){ 190 190 fh.Detach(); -
trunk/ab5.0/abdev/compiler_x64/MakePeHdr.cpp
r768 r769 1131 1131 hFile=CreateFile( 1132 1132 ( ActiveBasic::Common::Environment::GetAbdevSystemDirPath() + "\\dosstub.pgm" ).c_str(), 1133 GENERIC_READ, 0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);1133 GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); 1134 1134 if(hFile==INVALID_HANDLE_VALUE){ 1135 1135 MessageBox(hOwnerEditor,"dosstub.pgmの読み込みに失敗","error",MB_OK); -
trunk/ab5.0/jenga/include/common/File.h
r583 r769 18 18 std::string Read() 19 19 { 20 HANDLE hFile = CreateFile( filePath.c_str(), GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL );20 HANDLE hFile = CreateFile( filePath.c_str(), GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL ); 21 21 if( hFile == INVALID_HANDLE_VALUE ) 22 22 { … … 38 38 bool ReadBinary( Binary &binary ) 39 39 { 40 HANDLE hFile = CreateFile( filePath.c_str(), GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL );40 HANDLE hFile = CreateFile( filePath.c_str(), GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL ); 41 41 if( hFile == INVALID_HANDLE_VALUE ) 42 42 {
Note:
See TracChangeset
for help on using the changeset viewer.