Changeset 784 in dev
- Timestamp:
- Jan 29, 2011, 6:17:56 PM (14 years ago)
- Location:
- branches/egtra/ab5.0/abdev
- Files:
-
- 2 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/egtra/ab5.0/abdev/OldWindowsHelperImpl.cpp
r778 r784 30 30 void* WINAPI EncodePointer_Helper(void* p) 31 31 { 32 static bool first = false;33 if (!first)34 {35 ::MessageBox(nullptr, "test", "", 0);36 first = true;37 }38 32 if (auto EncodePointer_Real = GET_PROC_ADDRESS(KERNEL32, EncodePointer)) 39 33 { -
branches/egtra/ab5.0/abdev/ab-common.props
r781 r784 11 11 <ItemDefinitionGroup> 12 12 <ClCompile> 13 <AdditionalIncludeDirectories>..\.. \cpplibs\boost;$(SolutionDir)abdev-impl;$(SolutionDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>13 <AdditionalIncludeDirectories>..\..;..\..\cpplibs;..\..\cpplibs\boost;..\..\cpplibs\WTL80\include;$(SolutionDir)abdev-impl;$(SolutionDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 14 14 </ClCompile> 15 15 </ItemDefinitionGroup> -
branches/egtra/ab5.0/abdev/ab-test/ab-test.vcxproj.filters
r781 r784 20 20 </ClInclude> 21 21 <ClInclude Include="targetver.h"> 22 <Filter> Resource Files</Filter>22 <Filter>Header Filers</Filter> 23 23 </ClInclude> 24 24 </ItemGroup> -
branches/egtra/ab5.0/abdev/ab.sln
r781 r784 1 1 2 2 Microsoft Visual Studio Solution File, Format Version 11.00 3 # Visual C++ Express20103 # Visual Studio 2010 4 4 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "compiler", "compiler.vcxproj", "{11F0E9AB-EAEC-4616-A9DD-838073342CBB}" 5 5 EndProject 6 6 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "abdev", "abdev\abdev.vcxproj", "{DC1B787E-510F-4F7D-8F9A-182600904D83}" 7 ProjectSection(ProjectDependencies) = postProject 8 {75D495CD-8AB8-8B2D-A938-2A076F4310FF} = {75D495CD-8AB8-8B2D-A938-2A076F4310FF} 9 EndProjectSection 7 10 EndProject 8 11 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ab_common", "ab_common\ab_common.vcxproj", "{87835C33-64C9-4BA5-9B39-608BA5394387}" … … 14 17 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "abdev-impl", "abdev-impl\abdev-impl.vcxproj", "{58FF88A2-86BC-4480-95F4-71AF693FEF28}" 15 18 EndProject 19 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "icon_res", "icon_res\icon_res.vcxproj", "{75D495CD-8AB8-8B2D-A938-2A076F4310FF}" 20 EndProject 16 21 Global 17 22 GlobalSection(SolutionConfigurationPlatforms) = preSolution 23 AB_Release|Win32 = AB_Release|Win32 24 AB_Release|x64 = AB_Release|x64 18 25 Debug|Win32 = Debug|Win32 19 26 Debug|x64 = Debug|x64 … … 22 29 EndGlobalSection 23 30 GlobalSection(ProjectConfigurationPlatforms) = postSolution 31 {11F0E9AB-EAEC-4616-A9DD-838073342CBB}.AB_Release|Win32.ActiveCfg = Release|Win32 32 {11F0E9AB-EAEC-4616-A9DD-838073342CBB}.AB_Release|Win32.Build.0 = Release|Win32 33 {11F0E9AB-EAEC-4616-A9DD-838073342CBB}.AB_Release|x64.ActiveCfg = Release|x64 34 {11F0E9AB-EAEC-4616-A9DD-838073342CBB}.AB_Release|x64.Build.0 = Release|x64 24 35 {11F0E9AB-EAEC-4616-A9DD-838073342CBB}.Debug|Win32.ActiveCfg = Debug|Win32 25 36 {11F0E9AB-EAEC-4616-A9DD-838073342CBB}.Debug|Win32.Build.0 = Debug|Win32 … … 30 41 {11F0E9AB-EAEC-4616-A9DD-838073342CBB}.Release|x64.ActiveCfg = Release|x64 31 42 {11F0E9AB-EAEC-4616-A9DD-838073342CBB}.Release|x64.Build.0 = Release|x64 43 {DC1B787E-510F-4F7D-8F9A-182600904D83}.AB_Release|Win32.ActiveCfg = Release|Win32 44 {DC1B787E-510F-4F7D-8F9A-182600904D83}.AB_Release|Win32.Build.0 = Release|Win32 45 {DC1B787E-510F-4F7D-8F9A-182600904D83}.AB_Release|x64.ActiveCfg = Release|x64 46 {DC1B787E-510F-4F7D-8F9A-182600904D83}.AB_Release|x64.Build.0 = Release|x64 32 47 {DC1B787E-510F-4F7D-8F9A-182600904D83}.Debug|Win32.ActiveCfg = Debug|Win32 33 48 {DC1B787E-510F-4F7D-8F9A-182600904D83}.Debug|Win32.Build.0 = Debug|Win32 … … 36 51 {DC1B787E-510F-4F7D-8F9A-182600904D83}.Release|Win32.Build.0 = Release|Win32 37 52 {DC1B787E-510F-4F7D-8F9A-182600904D83}.Release|x64.ActiveCfg = Release|x64 53 {87835C33-64C9-4BA5-9B39-608BA5394387}.AB_Release|Win32.ActiveCfg = Release|Win32 54 {87835C33-64C9-4BA5-9B39-608BA5394387}.AB_Release|Win32.Build.0 = Release|Win32 55 {87835C33-64C9-4BA5-9B39-608BA5394387}.AB_Release|x64.ActiveCfg = Release|x64 56 {87835C33-64C9-4BA5-9B39-608BA5394387}.AB_Release|x64.Build.0 = Release|x64 38 57 {87835C33-64C9-4BA5-9B39-608BA5394387}.Debug|Win32.ActiveCfg = Debug|Win32 39 58 {87835C33-64C9-4BA5-9B39-608BA5394387}.Debug|Win32.Build.0 = Debug|Win32 … … 44 63 {87835C33-64C9-4BA5-9B39-608BA5394387}.Release|x64.ActiveCfg = Release|x64 45 64 {87835C33-64C9-4BA5-9B39-608BA5394387}.Release|x64.Build.0 = Release|x64 65 {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.AB_Release|Win32.ActiveCfg = Release|Win32 66 {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.AB_Release|Win32.Build.0 = Release|Win32 67 {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.AB_Release|x64.ActiveCfg = Release|x64 68 {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.AB_Release|x64.Build.0 = Release|x64 46 69 {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.Debug|Win32.ActiveCfg = Debug|Win32 47 70 {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.Debug|Win32.Build.0 = Debug|Win32 … … 52 75 {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.Release|x64.ActiveCfg = Release|x64 53 76 {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.Release|x64.Build.0 = Release|x64 77 {B91DE511-E024-4EB9-B5FD-B2043E79AE44}.AB_Release|Win32.ActiveCfg = Release|Win32 78 {B91DE511-E024-4EB9-B5FD-B2043E79AE44}.AB_Release|Win32.Build.0 = Release|Win32 79 {B91DE511-E024-4EB9-B5FD-B2043E79AE44}.AB_Release|x64.ActiveCfg = Release|x64 80 {B91DE511-E024-4EB9-B5FD-B2043E79AE44}.AB_Release|x64.Build.0 = Release|x64 54 81 {B91DE511-E024-4EB9-B5FD-B2043E79AE44}.Debug|Win32.ActiveCfg = Debug|Win32 55 82 {B91DE511-E024-4EB9-B5FD-B2043E79AE44}.Debug|Win32.Build.0 = Debug|Win32 … … 60 87 {B91DE511-E024-4EB9-B5FD-B2043E79AE44}.Release|x64.ActiveCfg = Release|x64 61 88 {B91DE511-E024-4EB9-B5FD-B2043E79AE44}.Release|x64.Build.0 = Release|x64 89 {58FF88A2-86BC-4480-95F4-71AF693FEF28}.AB_Release|Win32.ActiveCfg = Release|Win32 90 {58FF88A2-86BC-4480-95F4-71AF693FEF28}.AB_Release|Win32.Build.0 = Release|Win32 91 {58FF88A2-86BC-4480-95F4-71AF693FEF28}.AB_Release|x64.ActiveCfg = Release|x64 92 {58FF88A2-86BC-4480-95F4-71AF693FEF28}.AB_Release|x64.Build.0 = Release|x64 62 93 {58FF88A2-86BC-4480-95F4-71AF693FEF28}.Debug|Win32.ActiveCfg = Debug|Win32 63 94 {58FF88A2-86BC-4480-95F4-71AF693FEF28}.Debug|Win32.Build.0 = Debug|Win32 … … 68 99 {58FF88A2-86BC-4480-95F4-71AF693FEF28}.Release|x64.ActiveCfg = Release|x64 69 100 {58FF88A2-86BC-4480-95F4-71AF693FEF28}.Release|x64.Build.0 = Release|x64 101 {75D495CD-8AB8-8B2D-A938-2A076F4310FF}.AB_Release|Win32.ActiveCfg = AB_Release|Win32 102 {75D495CD-8AB8-8B2D-A938-2A076F4310FF}.AB_Release|Win32.Build.0 = AB_Release|Win32 103 {75D495CD-8AB8-8B2D-A938-2A076F4310FF}.AB_Release|x64.ActiveCfg = AB_Release|Win32 104 {75D495CD-8AB8-8B2D-A938-2A076F4310FF}.Debug|Win32.ActiveCfg = AB_Release|Win32 105 {75D495CD-8AB8-8B2D-A938-2A076F4310FF}.Debug|Win32.Build.0 = AB_Release|Win32 106 {75D495CD-8AB8-8B2D-A938-2A076F4310FF}.Debug|x64.ActiveCfg = AB_Release|Win32 107 {75D495CD-8AB8-8B2D-A938-2A076F4310FF}.Release|Win32.ActiveCfg = AB_Release|Win32 108 {75D495CD-8AB8-8B2D-A938-2A076F4310FF}.Release|Win32.Build.0 = AB_Release|Win32 109 {75D495CD-8AB8-8B2D-A938-2A076F4310FF}.Release|x64.ActiveCfg = AB_Release|Win32 70 110 EndGlobalSection 71 111 GlobalSection(SolutionProperties) = preSolution -
branches/egtra/ab5.0/abdev/abdev-impl/Resource/Load.h
r781 r784 1 1 #pragma once 2 3 #include <memory> 4 #include <windows.h> 2 5 3 6 namespace ActiveBasic { namespace Resource { 4 7 5 HICON LoadIcon(HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load); 8 HICON LoadIcon(HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load = 0); 9 10 struct IconDeleter 11 { 12 typedef HICON pointer; 13 14 void operator ()(HICON hicon) const 15 { 16 ::DestroyIcon(hicon); 17 } 18 }; 19 20 typedef std::unique_ptr<HICON, IconDeleter> UniqueHIcon; 6 21 7 22 }} -
branches/egtra/ab5.0/abdev/abdev/ChildWndOnRebar.cpp
r629 r784 229 229 230 230 231 #define ADD_TOOLBAR_BUTTON(id, iconID,lpszToolTip) pobj_StandardToolbar->Add(id,(HICON)LoadImage(hIconResInst,MAKEINTRESOURCE(iconID),IMAGE_ICON,16,16,0),lpszToolTip)231 #define ADD_TOOLBAR_BUTTON(id, iconID, lpszToolTip) pobj_StandardToolbar->Add((id), ActiveBasic::Resource::LoadIcon(hIconResInst, (iconID), 16, 16), (lpszToolTip)) 232 232 #define ADD_TOOLBAR_SEPARATOR pobj_StandardToolbar->Add(0,0,0) 233 233 //ボタン類を追加 … … 279 279 pobj_DebuggerToolbar->Create(hDebuggerToolbarPager); 280 280 281 #define ADD_TOOLBAR_BUTTON(id, iconID,lpszToolTip) pobj_DebuggerToolbar->Add(id,(HICON)LoadImage(hIconResInst,MAKEINTRESOURCE(iconID),IMAGE_ICON,16,16,0),lpszToolTip)281 #define ADD_TOOLBAR_BUTTON(id, iconID, lpszToolTip) pobj_DebuggerToolbar->Add((id), ActiveBasic::Resource::LoadIcon(hIconResInst, (iconID), 16, 16), (lpszToolTip)) 282 282 #define ADD_TOOLBAR_SEPARATOR pobj_DebuggerToolbar->Add(0,0,0) 283 283 //ボタン類を追加 … … 327 327 pobj_ReleaseToolbar->Create(hReleaseToolbarPager); 328 328 329 #define ADD_TOOLBAR_BUTTON(id, iconID,lpszToolTip) pobj_ReleaseToolbar->Add(id,(HICON)LoadImage(hIconResInst,MAKEINTRESOURCE(iconID),IMAGE_ICON,16,16,0),lpszToolTip)329 #define ADD_TOOLBAR_BUTTON(id, iconID, lpszToolTip) pobj_ReleaseToolbar->Add((id), ActiveBasic::Resource::LoadIcon(hIconResInst, (iconID), 16, 16), (lpszToolTip)) 330 330 #define ADD_TOOLBAR_SEPARATOR pobj_ReleaseToolbar->Add(0,0,0) 331 331 //ボタン類を追加 -
branches/egtra/ab5.0/abdev/abdev/Common.h
r772 r784 33 33 #include "Debugger.h" 34 34 35 #include <Resource/Load.h> 35 36 36 37 #pragma comment(lib, "wininet.lib") -
branches/egtra/ab5.0/abdev/abdev/DrawBuffer.cpp
r778 r784 222 222 223 223 if(bBreakPoint){ 224 DrawIconEx(memdc,3,i*font_height+(font_height-16)/2, 225 (HICON)LoadImage(hIconResInst,MAKEINTRESOURCE(IDI_BREAKPOINT_FLAG),IMAGE_ICON,16,16,LR_SHARED), 226 16,16,0,NULL,DI_NORMAL); 224 ActiveBasic::Resource::UniqueHIcon hicon(ActiveBasic::Resource::LoadIcon(hIconResInst, IDI_BREAKPOINT_FLAG, 16, 16)); 225 DrawIconEx(memdc,3,i*font_height+(font_height-16)/2,hicon.get(),16,16,0,NULL,DI_NORMAL); 227 226 } 228 227 else{ -
branches/egtra/ab5.0/abdev/abdev/SubOperation.cpp
r772 r784 692 692 const std::string resDllPath = ActiveBasic::Common::Environment::GetAbdevSystemDirPath() + "\\res.dll"; 693 693 hResInst = LoadLibrary( resDllPath.c_str() ); 694 if(!hResInst){ 695 MessageBox(0,"res.dllの読み込みに失敗しました。",APPLICATION_NAME,MB_OK|MB_ICONEXCLAMATION); 696 return 0; 697 } 694 698 695 699 //アイコンリソースDLLをマッピング 696 700 const std::string iconResDllPath = ActiveBasic::Common::Environment::GetAbdevSystemDirPath() + "\\icon_res.dll"; 697 hIconResInst = LoadLibrary( iconResDllPath.c_str() ); 701 hIconResInst = LoadLibraryEx( iconResDllPath.c_str(), nullptr, LOAD_LIBRARY_AS_DATAFILE ); 702 if(!hIconResInst){ 703 MessageBox(0,"icon_res.dllの読み込みに失敗しました。",APPLICATION_NAME,MB_OK|MB_ICONEXCLAMATION); 704 return 0; 705 } 698 706 699 707 //LuxCtrl.dllをマッピング … … 872 880 } 873 881 874 #define ICONSET(itemID, iconID) pobj_MainMenu->SetIcon(itemID,(HICON)LoadImage(hIconResInst,MAKEINTRESOURCE(iconID),IMAGE_ICON,16,16,0));882 #define ICONSET(itemID, iconID) pobj_MainMenu->SetIcon((itemID), ActiveBasic::Resource::LoadIcon(hIconResInst, (iconID), 16, 16)); 875 883 //メニューアイコンをセット 876 884 -
branches/egtra/ab5.0/abdev/abdev/abdev.vcxproj
r781 r784 54 54 <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC60.props" /> 55 55 <Import Project="..\ab-common-32.props" /> 56 <Import Project="..\ab-common.props" /> 56 57 </ImportGroup> 57 58 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> … … 59 60 <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC60.props" /> 60 61 <Import Project="..\ab-common-32.props" /> 62 <Import Project="..\ab-common.props" /> 61 63 </ImportGroup> 62 64 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets"> 63 65 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 64 66 <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC60.props" /> 67 <Import Project="..\ab-common.props" /> 65 68 </ImportGroup> 66 69 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets"> 67 70 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 68 71 <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC60.props" /> 72 <Import Project="..\ab-common.props" /> 69 73 </ImportGroup> 70 74 <PropertyGroup Label="UserMacros" /> … … 97 101 <AdditionalOptions>/MP %(AdditionalOptions)</AdditionalOptions> 98 102 <Optimization>Disabled</Optimization> 99 <AdditionalIncludeDirectories>..\..\;..\..\cpplibs;..\..\cpplibs\boost;..\..\cpplibs\WTL80\include;.\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>100 103 <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;JPN;WINVER=0x040A;_WIN32_WINNT=0x0403;_WIN32_WINDOWS=0x0400;_WIN32_IE=0x0401;TIXML_USE_STL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 101 104 <MinimalRebuild>false</MinimalRebuild> … … 104 107 <PrecompiledHeader>Use</PrecompiledHeader> 105 108 <WarningLevel>Level3</WarningLevel> 106 <SuppressStartupBanner>true</SuppressStartupBanner> 107 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 109 <AdditionalIncludeDirectories>.\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 108 110 </ClCompile> 109 111 <ResourceCompile> … … 140 142 <AdditionalOptions>/MP %(AdditionalOptions)</AdditionalOptions> 141 143 <Optimization>Disabled</Optimization> 142 <AdditionalIncludeDirectories>..\..\;..\..\cpplibs;..\..\cpplibs\boost;..\..\cpplibs\WTL80\include;.\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>143 144 <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;JPN;WINVER=0x0501;_WIN32_WINNT=0x0501;TIXML_USE_STL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 144 145 <MinimalRebuild>false</MinimalRebuild> … … 147 148 <PrecompiledHeader>Use</PrecompiledHeader> 148 149 <WarningLevel>Level3</WarningLevel> 149 <SuppressStartupBanner>true</SuppressStartupBanner> 150 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 150 <AdditionalIncludeDirectories>.\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 151 151 </ClCompile> 152 152 <ResourceCompile> … … 182 182 <AdditionalOptions>/MP %(AdditionalOptions)</AdditionalOptions> 183 183 <Optimization>MinSpace</Optimization> 184 <AdditionalIncludeDirectories>..\..\;..\..\cpplibs;..\..\cpplibs\boost;..\..\cpplibs\WTL80\include;.\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>185 184 <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;JPN;WINVER=0x040A;_WIN32_WINNT=0x0403;_WIN32_WINDOWS=0x0400;_WIN32_IE=0x0401;TIXML_USE_STL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 186 185 <RuntimeLibrary>MultiThreaded</RuntimeLibrary> 187 186 <PrecompiledHeader>Use</PrecompiledHeader> 188 187 <WarningLevel>Level3</WarningLevel> 189 <SuppressStartupBanner>true</SuppressStartupBanner> 190 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 188 <AdditionalIncludeDirectories>.\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 191 189 </ClCompile> 192 190 <ResourceCompile> … … 226 224 <AdditionalOptions>/MP %(AdditionalOptions)</AdditionalOptions> 227 225 <Optimization>MinSpace</Optimization> 228 <AdditionalIncludeDirectories>..\..\;..\..\cpplibs;..\..\cpplibs\boost;..\..\cpplibs\WTL80\include;.\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>229 226 <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;JPN;WINVER=0x0501;_WIN32_WINNT=0x0501;TIXML_USE_STL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 230 227 <RuntimeLibrary>MultiThreaded</RuntimeLibrary> 231 228 <PrecompiledHeader>Use</PrecompiledHeader> 232 229 <WarningLevel>Level3</WarningLevel> 233 <SuppressStartupBanner>true</SuppressStartupBanner> 234 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 230 <AdditionalIncludeDirectories>.\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 235 231 </ClCompile> 236 232 <ResourceCompile>
Note:
See TracChangeset
for help on using the changeset viewer.