Index: trunk/ab5.0/abdev/BasicCompiler_Common/RSrcSection.cpp
===================================================================
--- trunk/ab5.0/abdev/BasicCompiler_Common/RSrcSection.cpp	(revision 622)
+++ trunk/ab5.0/abdev/BasicCompiler_Common/RSrcSection.cpp	(revision 624)
@@ -96,8 +96,9 @@
 
 	//カーソルの枚数を計算（CursorNumに格納）
-	for(i3=0;i3<compiler.resourceManager.cursorResources.size();i3++){
-		hFile=CreateFile(compiler.resourceManager.cursorResources[i3].filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
+	BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, compiler.resourceManager.cursorResources )
+	{
+		hFile=CreateFile(resourceItem.filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
 		if(hFile==INVALID_HANDLE_VALUE){
-			compiler.errorMessenger.Output(23,compiler.resourceManager.cursorResources[i3].filepath.c_str(),-1);
+			compiler.errorMessenger.Output(23,resourceItem.filepath.c_str(),-1);
 			sw=1;
 			continue;
@@ -115,8 +116,9 @@
 
 	//ビットマップのファイルの有無を確認
-	for(i3=0;i3<compiler.resourceManager.bitmapResources.size();i3++){
-		hFile=CreateFile(compiler.resourceManager.bitmapResources[i3].filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
+	BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, compiler.resourceManager.bitmapResources )
+	{
+		hFile=CreateFile(resourceItem.filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
 		if(hFile==INVALID_HANDLE_VALUE){
-			compiler.errorMessenger.Output(23,compiler.resourceManager.bitmapResources[i3].filepath.c_str(),-1);
+			compiler.errorMessenger.Output(23,resourceItem.filepath.c_str(),-1);
 			sw=1;
 			continue;
@@ -126,8 +128,9 @@
 
 	//アイコンの枚数を計算（IconNumに格納）
-	for(i3=0;i3<compiler.resourceManager.iconResources.size();i3++){
-		hFile=CreateFile(compiler.resourceManager.iconResources[i3].filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
+	BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, compiler.resourceManager.iconResources )
+	{
+		hFile=CreateFile(resourceItem.filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
 		if(hFile==INVALID_HANDLE_VALUE){
-			compiler.errorMessenger.Output(23,compiler.resourceManager.iconResources[i3].filepath.c_str(),-1);
+			compiler.errorMessenger.Output(23,resourceItem.filepath.c_str(),-1);
 			sw=1;
 			continue;
@@ -284,11 +287,11 @@
 		i2+=sizeof(IMAGE_RESOURCE_DIRECTORY);
 
-		for(i3=0;i3<compiler.resourceManager.bitmapResources.size();i3++)
+		for(i3=0;i3<static_cast<int>(compiler.resourceManager.bitmapResources.size());i3++)
 		{
-			ImgDirEntry.Name = compiler.GetObjectModule().meta.GetGlobalConsts().GetWholeData(
+			ImgDirEntry.Name = static_cast<DWORD>(compiler.GetObjectModule().meta.GetGlobalConsts().GetWholeData(
 				ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol(
 					compiler.resourceManager.bitmapResources[i3].idName
 				)
-			);
+			));
 			ImgDirEntry.OffsetToData=(NextBase+i6+
 				(sizeof(IMAGE_RESOURCE_DIRECTORY)+
@@ -339,10 +342,10 @@
 		i2+=sizeof(IMAGE_RESOURCE_DIRECTORY);
 
-		for(i3=0;i3<compiler.resourceManager.cursorResources.size();i3++){
-			ImgDirEntry.Name = compiler.GetObjectModule().meta.GetGlobalConsts().GetWholeData(
+		for(i3=0;i3<static_cast<int>(compiler.resourceManager.cursorResources.size());i3++){
+			ImgDirEntry.Name = static_cast<DWORD>(compiler.GetObjectModule().meta.GetGlobalConsts().GetWholeData(
 				ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol(
 					compiler.resourceManager.cursorResources[i3].idName
 				)
-			);
+			));
 			ImgDirEntry.OffsetToData=(NextBase+i6+
 				(sizeof(IMAGE_RESOURCE_DIRECTORY)+
@@ -369,10 +372,10 @@
 		i2+=sizeof(IMAGE_RESOURCE_DIRECTORY);
 
-		for(i3=0;i3<compiler.resourceManager.iconResources.size();i3++){
-			ImgDirEntry.Name = compiler.GetObjectModule().meta.GetGlobalConsts().GetWholeData(
+		for(i3=0;i3<static_cast<int>(compiler.resourceManager.iconResources.size());i3++){
+			ImgDirEntry.Name = static_cast<DWORD>(compiler.GetObjectModule().meta.GetGlobalConsts().GetWholeData(
 				ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol(
 					compiler.resourceManager.iconResources[i3].idName
 				)
-			);
+			));
 			ImgDirEntry.OffsetToData=(NextBase+i6+
 				(sizeof(IMAGE_RESOURCE_DIRECTORY)+
@@ -447,5 +450,5 @@
 	if( !compiler.resourceManager.bitmapResources.empty() ){
 		//RT_BITMAP
-		for(i3=0;i3<compiler.resourceManager.bitmapResources.size();i3++){
+		for(i3=0;i3<static_cast<int>(compiler.resourceManager.bitmapResources.size());i3++){
 			ImgResDir.Characteristics=0;
 			ImgResDir.TimeDateStamp=0;
@@ -490,5 +493,5 @@
 	{
 		//RT_GROUP_CURSOR
-		for(i3=0;i3<compiler.resourceManager.cursorResources.size();i3++){
+		for(i3=0;i3<static_cast<int>(compiler.resourceManager.cursorResources.size());i3++){
 			ImgResDir.Characteristics=0;
 			ImgResDir.TimeDateStamp=0;
@@ -512,5 +515,5 @@
 	{
 		//RT_GROUP_ICON
-		for(i3=0;i3<compiler.resourceManager.iconResources.size();i3++){
+		for(i3=0;i3<static_cast<int>(compiler.resourceManager.iconResources.size());i3++){
 			ImgResDir.Characteristics=0;
 			ImgResDir.TimeDateStamp=0;
@@ -590,5 +593,5 @@
 	//RT_BITMAP
 	BitmapEntryBase=DataEntryScheduleNum;
-	for(i3=0;i3<compiler.resourceManager.bitmapResources.size();i3++){
+	for(i3=0;i3<static_cast<int>(compiler.resourceManager.bitmapResources.size());i3++){
 		dwDataEntrySchedule[DataEntryScheduleNum]=i2;
 		DataEntryScheduleNum++;
@@ -608,5 +611,5 @@
 	//RT_GROUP_CURSOR
 	CursorGroupEntryBase=DataEntryScheduleNum;
-	for(i3=0;i3<compiler.resourceManager.cursorResources.size();i3++){
+	for(i3=0;i3<static_cast<int>(compiler.resourceManager.cursorResources.size());i3++){
 		dwDataEntrySchedule[DataEntryScheduleNum]=i2;
 		DataEntryScheduleNum++;
@@ -617,5 +620,5 @@
 	//RT_GROUP_ICON
 	IconGroupEntryBase=DataEntryScheduleNum;
-	for(i3=0;i3<compiler.resourceManager.iconResources.size();i3++){
+	for(i3=0;i3<static_cast<int>(compiler.resourceManager.iconResources.size());i3++){
 		dwDataEntrySchedule[DataEntryScheduleNum]=i2;
 		DataEntryScheduleNum++;
@@ -657,5 +660,5 @@
 
 	//カーソルリソース
-	for(i3=0,i6=0;i3<compiler.resourceManager.cursorResources.size();i3++){
+	for(i3=0,i6=0;i3<static_cast<int>(compiler.resourceManager.cursorResources.size());i3++){
 		hFile=CreateFile(compiler.resourceManager.cursorResources[i3].filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
 		if(hFile==INVALID_HANDLE_VALUE){
@@ -737,5 +740,5 @@
 
 	//ビットマップリソース
-	for(i3=0;i3<compiler.resourceManager.bitmapResources.size();i3++){
+	for(i3=0;i3<static_cast<int>(compiler.resourceManager.bitmapResources.size());i3++){
 		hFile=CreateFile(compiler.resourceManager.bitmapResources[i3].filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
 		if(hFile==INVALID_HANDLE_VALUE){
@@ -765,5 +768,5 @@
 
 	//アイコンリソース
-	for(i3=0,i6=0;i3<compiler.resourceManager.iconResources.size();i3++){
+	for(i3=0,i6=0;i3<static_cast<int>(compiler.resourceManager.iconResources.size());i3++){
 		hFile=CreateFile(compiler.resourceManager.iconResources[i3].filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
 		if(hFile==INVALID_HANDLE_VALUE){
