Changeset 624 in dev for trunk/ab5.0/abdev/BasicCompiler_Common
- Timestamp:
- May 23, 2008, 10:35:36 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/RSrcSection.cpp
r622 r624 96 96 97 97 //カーソルの枚数を計算(CursorNumに格納) 98 for(i3=0;i3<compiler.resourceManager.cursorResources.size();i3++){ 99 hFile=CreateFile(compiler.resourceManager.cursorResources[i3].filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); 98 BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, compiler.resourceManager.cursorResources ) 99 { 100 hFile=CreateFile(resourceItem.filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); 100 101 if(hFile==INVALID_HANDLE_VALUE){ 101 compiler.errorMessenger.Output(23, compiler.resourceManager.cursorResources[i3].filepath.c_str(),-1);102 compiler.errorMessenger.Output(23,resourceItem.filepath.c_str(),-1); 102 103 sw=1; 103 104 continue; … … 115 116 116 117 //ビットマップのファイルの有無を確認 117 for(i3=0;i3<compiler.resourceManager.bitmapResources.size();i3++){ 118 hFile=CreateFile(compiler.resourceManager.bitmapResources[i3].filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); 118 BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, compiler.resourceManager.bitmapResources ) 119 { 120 hFile=CreateFile(resourceItem.filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); 119 121 if(hFile==INVALID_HANDLE_VALUE){ 120 compiler.errorMessenger.Output(23, compiler.resourceManager.bitmapResources[i3].filepath.c_str(),-1);122 compiler.errorMessenger.Output(23,resourceItem.filepath.c_str(),-1); 121 123 sw=1; 122 124 continue; … … 126 128 127 129 //アイコンの枚数を計算(IconNumに格納) 128 for(i3=0;i3<compiler.resourceManager.iconResources.size();i3++){ 129 hFile=CreateFile(compiler.resourceManager.iconResources[i3].filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); 130 BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, compiler.resourceManager.iconResources ) 131 { 132 hFile=CreateFile(resourceItem.filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); 130 133 if(hFile==INVALID_HANDLE_VALUE){ 131 compiler.errorMessenger.Output(23, compiler.resourceManager.iconResources[i3].filepath.c_str(),-1);134 compiler.errorMessenger.Output(23,resourceItem.filepath.c_str(),-1); 132 135 sw=1; 133 136 continue; … … 284 287 i2+=sizeof(IMAGE_RESOURCE_DIRECTORY); 285 288 286 for(i3=0;i3< compiler.resourceManager.bitmapResources.size();i3++)289 for(i3=0;i3<static_cast<int>(compiler.resourceManager.bitmapResources.size());i3++) 287 290 { 288 ImgDirEntry.Name = compiler.GetObjectModule().meta.GetGlobalConsts().GetWholeData(291 ImgDirEntry.Name = static_cast<DWORD>(compiler.GetObjectModule().meta.GetGlobalConsts().GetWholeData( 289 292 ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol( 290 293 compiler.resourceManager.bitmapResources[i3].idName 291 294 ) 292 ) ;295 )); 293 296 ImgDirEntry.OffsetToData=(NextBase+i6+ 294 297 (sizeof(IMAGE_RESOURCE_DIRECTORY)+ … … 339 342 i2+=sizeof(IMAGE_RESOURCE_DIRECTORY); 340 343 341 for(i3=0;i3< compiler.resourceManager.cursorResources.size();i3++){342 ImgDirEntry.Name = compiler.GetObjectModule().meta.GetGlobalConsts().GetWholeData(344 for(i3=0;i3<static_cast<int>(compiler.resourceManager.cursorResources.size());i3++){ 345 ImgDirEntry.Name = static_cast<DWORD>(compiler.GetObjectModule().meta.GetGlobalConsts().GetWholeData( 343 346 ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol( 344 347 compiler.resourceManager.cursorResources[i3].idName 345 348 ) 346 ) ;349 )); 347 350 ImgDirEntry.OffsetToData=(NextBase+i6+ 348 351 (sizeof(IMAGE_RESOURCE_DIRECTORY)+ … … 369 372 i2+=sizeof(IMAGE_RESOURCE_DIRECTORY); 370 373 371 for(i3=0;i3< compiler.resourceManager.iconResources.size();i3++){372 ImgDirEntry.Name = compiler.GetObjectModule().meta.GetGlobalConsts().GetWholeData(374 for(i3=0;i3<static_cast<int>(compiler.resourceManager.iconResources.size());i3++){ 375 ImgDirEntry.Name = static_cast<DWORD>(compiler.GetObjectModule().meta.GetGlobalConsts().GetWholeData( 373 376 ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol( 374 377 compiler.resourceManager.iconResources[i3].idName 375 378 ) 376 ) ;379 )); 377 380 ImgDirEntry.OffsetToData=(NextBase+i6+ 378 381 (sizeof(IMAGE_RESOURCE_DIRECTORY)+ … … 447 450 if( !compiler.resourceManager.bitmapResources.empty() ){ 448 451 //RT_BITMAP 449 for(i3=0;i3< compiler.resourceManager.bitmapResources.size();i3++){452 for(i3=0;i3<static_cast<int>(compiler.resourceManager.bitmapResources.size());i3++){ 450 453 ImgResDir.Characteristics=0; 451 454 ImgResDir.TimeDateStamp=0; … … 490 493 { 491 494 //RT_GROUP_CURSOR 492 for(i3=0;i3< compiler.resourceManager.cursorResources.size();i3++){495 for(i3=0;i3<static_cast<int>(compiler.resourceManager.cursorResources.size());i3++){ 493 496 ImgResDir.Characteristics=0; 494 497 ImgResDir.TimeDateStamp=0; … … 512 515 { 513 516 //RT_GROUP_ICON 514 for(i3=0;i3< compiler.resourceManager.iconResources.size();i3++){517 for(i3=0;i3<static_cast<int>(compiler.resourceManager.iconResources.size());i3++){ 515 518 ImgResDir.Characteristics=0; 516 519 ImgResDir.TimeDateStamp=0; … … 590 593 //RT_BITMAP 591 594 BitmapEntryBase=DataEntryScheduleNum; 592 for(i3=0;i3< compiler.resourceManager.bitmapResources.size();i3++){595 for(i3=0;i3<static_cast<int>(compiler.resourceManager.bitmapResources.size());i3++){ 593 596 dwDataEntrySchedule[DataEntryScheduleNum]=i2; 594 597 DataEntryScheduleNum++; … … 608 611 //RT_GROUP_CURSOR 609 612 CursorGroupEntryBase=DataEntryScheduleNum; 610 for(i3=0;i3< compiler.resourceManager.cursorResources.size();i3++){613 for(i3=0;i3<static_cast<int>(compiler.resourceManager.cursorResources.size());i3++){ 611 614 dwDataEntrySchedule[DataEntryScheduleNum]=i2; 612 615 DataEntryScheduleNum++; … … 617 620 //RT_GROUP_ICON 618 621 IconGroupEntryBase=DataEntryScheduleNum; 619 for(i3=0;i3< compiler.resourceManager.iconResources.size();i3++){622 for(i3=0;i3<static_cast<int>(compiler.resourceManager.iconResources.size());i3++){ 620 623 dwDataEntrySchedule[DataEntryScheduleNum]=i2; 621 624 DataEntryScheduleNum++; … … 657 660 658 661 //カーソルリソース 659 for(i3=0,i6=0;i3< compiler.resourceManager.cursorResources.size();i3++){662 for(i3=0,i6=0;i3<static_cast<int>(compiler.resourceManager.cursorResources.size());i3++){ 660 663 hFile=CreateFile(compiler.resourceManager.cursorResources[i3].filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); 661 664 if(hFile==INVALID_HANDLE_VALUE){ … … 737 740 738 741 //ビットマップリソース 739 for(i3=0;i3< compiler.resourceManager.bitmapResources.size();i3++){742 for(i3=0;i3<static_cast<int>(compiler.resourceManager.bitmapResources.size());i3++){ 740 743 hFile=CreateFile(compiler.resourceManager.bitmapResources[i3].filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); 741 744 if(hFile==INVALID_HANDLE_VALUE){ … … 765 768 766 769 //アイコンリソース 767 for(i3=0,i6=0;i3< compiler.resourceManager.iconResources.size();i3++){770 for(i3=0,i6=0;i3<static_cast<int>(compiler.resourceManager.iconResources.size());i3++){ 768 771 hFile=CreateFile(compiler.resourceManager.iconResources[i3].filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); 769 772 if(hFile==INVALID_HANDLE_VALUE){
Note:
See TracChangeset
for help on using the changeset viewer.