| Revision | 408e1bdeed398725795ea8a03c00be1ba9d5634b (tree) |
|---|---|
| Time | 2012-03-13 00:46:08 |
| Author | qwerty2501 <qwerty2501users.sourceforge.jp> |
| Commiter | qwerty2501 |
初期化関数修正
| @@ -19,10 +19,8 @@ CAppModule _Module; | ||
| 19 | 19 | int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE, |
| 20 | 20 | LPTSTR lpCmdLine, int nCmdShow) |
| 21 | 21 | { |
| 22 | - INITCOMMONCONTROLSEX icmc; | |
| 23 | - icmc.dwSize = sizeof(icmc); | |
| 24 | - icmc.dwICC = ICC_WIN95_CLASSES; | |
| 25 | - InitCommonControlsEx(&icmc); | |
| 22 | + | |
| 23 | + AtlInitCommonControls(ICC_COOL_CLASSES | ICC_WIN95_CLASSES); | |
| 26 | 24 | HINSTANCE hRich = LoadLibrary(CRichEditCtrl::GetLibraryName()); |
| 27 | 25 | int nRet = -1; |
| 28 | 26 | try{ |
| @@ -34,7 +32,7 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE, | ||
| 34 | 32 | // |
| 35 | 33 | HRESULT hRes = ::CoInitialize(NULL); |
| 36 | 34 | ATLASSERT(SUCCEEDED(hRes)); |
| 37 | - AtlInitCommonControls(ICC_COOL_CLASSES | ICC_WIN95_CLASSES); | |
| 35 | + | |
| 38 | 36 | GUID guid; |
| 39 | 37 | if(_Module.Init(NULL, hInstance,&guid) != S_OK){ |
| 40 | 38 | throw AppInitException(__LINE__,TEXT(__FILE__),TEXT(__FUNCTION__)); |
| @@ -72,23 +72,28 @@ | ||
| 72 | 72 | <EmbedManifest>false</EmbedManifest> |
| 73 | 73 | <CustomBuildAfterTargets> |
| 74 | 74 | </CustomBuildAfterTargets> |
| 75 | + <GenerateManifest>false</GenerateManifest> | |
| 76 | + <LibraryPath>$(SolutionDir)$(Configuration);$(LibraryPath);$(WinDDK)lib\ATL\i386</LibraryPath> | |
| 75 | 77 | </PropertyGroup> |
| 76 | 78 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-window|Win32'"> |
| 77 | 79 | <LinkIncremental>true</LinkIncremental> |
| 78 | 80 | <IncludePath>$(solutiondir)\nlib;$(solutiondir)\include\WTL\include;$(solutiondir);$(solutiondir)\include;$(solutiondir)\expat;$(solutiondir)nlib\;$(solutiondir)memorypool\;$(solutiondir)shareCookie\;$(solutiondir);$(IncludePath);$(solutiondir)\speaker;$(IncludePath);$(IncludePath)</IncludePath> |
| 79 | 81 | <CustomBuildAfterTargets> |
| 80 | 82 | </CustomBuildAfterTargets> |
| 83 | + <LibraryPath>$(SolutionDir)$(Configuration);$(LibraryPath);$(WinDDK)lib\ATL\i386</LibraryPath> | |
| 81 | 84 | </PropertyGroup> |
| 82 | 85 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> |
| 83 | 86 | <LinkIncremental>false</LinkIncremental> |
| 84 | 87 | <IncludePath>$(solutiondir)\nlib;$(solutiondir)\include\WTL\include;$(solutiondir);$(solutiondir)\include;$(solutiondir)\expat;$(WDDK)inc\atl71;$(BOOST);$(IncludePath);$(solutiondir)\speaker;$(IncludePath);$(IncludePath)</IncludePath> |
| 85 | 88 | <CustomBuildAfterTargets> |
| 86 | 89 | </CustomBuildAfterTargets> |
| 90 | + <LibraryPath>$(SolutionDir)$(Configuration);$(LibraryPath);$(WinDDK)lib\ATL\i386</LibraryPath> | |
| 87 | 91 | </PropertyGroup> |
| 88 | 92 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Preview|Win32'"> |
| 89 | 93 | <LinkIncremental>false</LinkIncremental> |
| 90 | 94 | <IncludePath>$(solutiondir)\nlib;$(solutiondir)\include\WTL\include;$(solutiondir);$(solutiondir)\include;$(solutiondir)\expat;$(WDDK)inc\atl71;$(BOOST);$(IncludePath);$(solutiondir)\speaker;$(IncludePath);$(IncludePath)</IncludePath> |
| 91 | 95 | <CustomBuildAfterTargets /> |
| 96 | + <LibraryPath>$(SolutionDir)$(Configuration);$(LibraryPath);$(WinDDK)lib\ATL\i386</LibraryPath> | |
| 92 | 97 | </PropertyGroup> |
| 93 | 98 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> |
| 94 | 99 | <ClCompile> |
| @@ -114,6 +119,9 @@ | ||
| 114 | 119 | <Command>mkdir "$(targetdir)libs" /y |
| 115 | 120 | xcopy "$(ProjectDir)libs" "$(targetdir)libs" /e /y</Command> |
| 116 | 121 | </PostBuildEvent> |
| 122 | + <Manifest> | |
| 123 | + <AdditionalManifestFiles>$(Projectdir)$(TargetfileName).manifest</AdditionalManifestFiles> | |
| 124 | + </Manifest> | |
| 117 | 125 | </ItemDefinitionGroup> |
| 118 | 126 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug-window|Win32'"> |
| 119 | 127 | <ClCompile> |
| @@ -139,6 +147,9 @@ xcopy "$(ProjectDir)libs" "$(targetdir)libs" /e /y</Command> | ||
| 139 | 147 | <Command>mkdir "$(targetdir)libs" /y |
| 140 | 148 | xcopy "$(ProjectDir)libs" "$(targetdir)libs" /e /y</Command> |
| 141 | 149 | </PostBuildEvent> |
| 150 | + <Manifest> | |
| 151 | + <AdditionalManifestFiles>$(Projectdir)$(TargetfileName).manifest</AdditionalManifestFiles> | |
| 152 | + </Manifest> | |
| 142 | 153 | </ItemDefinitionGroup> |
| 143 | 154 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> |
| 144 | 155 | <ClCompile> |
| @@ -169,6 +180,9 @@ xcopy "$(ProjectDir)libs" "$(targetdir)libs" /e /y</Command> | ||
| 169 | 180 | xcopy "$(ProjectDir)libs" "$(targetdir)nlite\libs" /e /y |
| 170 | 181 | copy "$(targetdir)nlite.exe" "$(targetdir)nlite\" /y</Command> |
| 171 | 182 | </PostBuildEvent> |
| 183 | + <Manifest> | |
| 184 | + <AdditionalManifestFiles>$(Projectdir)$(TargetfileName).manifest</AdditionalManifestFiles> | |
| 185 | + </Manifest> | |
| 172 | 186 | </ItemDefinitionGroup> |
| 173 | 187 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Preview|Win32'"> |
| 174 | 188 | <ClCompile> |
| @@ -202,6 +216,10 @@ copy "$(targetdir)nlite.exe" "$(targetdir)nlite_preview\" /y | ||
| 202 | 216 | |
| 203 | 217 | </Command> |
| 204 | 218 | </PostBuildEvent> |
| 219 | + <Manifest> | |
| 220 | + <AdditionalManifestFiles> | |
| 221 | + </AdditionalManifestFiles> | |
| 222 | + </Manifest> | |
| 205 | 223 | </ItemDefinitionGroup> |
| 206 | 224 | <ItemGroup> |
| 207 | 225 | <None Include="nlite.ico" /> |