Changeset 769 in dev for trunk/ab5.0/abdev/BasicCompiler_Common
- Timestamp:
- Mar 28, 2009, 12:12:58 PM (16 years ago)
- File:
-
- 1 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);
Note:
See TracChangeset
for help on using the changeset viewer.