From: ShadowFlare Date: Wed, 6 Sep 2006 20:34:40 +0000 (+0000) Subject: (no commit message) X-Git-Url: https://sfsrealm.hopto.org/projects/gitweb.cgi?a=commitdiff_plain;h=561c0942c0bb8e6dcfcc3616a5b89123cadd9ce1;p=grpapi.git --- diff --git a/drawgrp/drawgrp.cpp b/drawgrp/drawgrp.cpp index 4de2c4c..630fcf1 100644 --- a/drawgrp/drawgrp.cpp +++ b/drawgrp/drawgrp.cpp @@ -57,7 +57,7 @@ int main(int argc, char* argv[]) if (argc>1) hGrp = LoadGrp(argv[1]); else - hGrp = LoadGrp("unit\\zerg\\ultra.grp"); + hGrp = LoadGrp("game\\icons.grp"); HDC hDC = GetDC(0); GRPHEADER GrpInfo; if (GetGrpInfo(hGrp,&GrpInfo)==0) {GrpInfo.nFrames=0;GrpInfo.wMaxWidth=0;GrpInfo.wMaxHeight=0;} @@ -74,7 +74,7 @@ int main(int argc, char* argv[]) }*/ COLORREF clrPixel; RECT rect; - for (i=13;i<400;i+=17) { + for (i=0;i<400;i+=1) { rect.left = rect.top = i; rect.right = rect.left + BI.nWidth; rect.bottom = rect.top + BI.nHeight; @@ -91,7 +91,7 @@ int main(int argc, char* argv[]) } FillRect(hDC, &rect, (HBRUSH) (COLOR_WINDOW+1)); } - for (i=4;i<400;i+=17) { + for (i=0;i<400;i+=1) { rect.left = rect.top = 400-i; rect.right = rect.left + BI.nWidth; rect.bottom = rect.top + BI.nHeight; diff --git a/drawgrp/drawgrp.vcproj b/drawgrp/drawgrp.vcproj index a1e7158..b7b5f2f 100644 --- a/drawgrp/drawgrp.vcproj +++ b/drawgrp/drawgrp.vcproj @@ -1,130 +1,195 @@ + SccProvider="MSSCCI:Microsoft Visual SourceSafe" + > + Name="Win32" + /> + + + ATLMinimizesCRunTimeLibraryUsage="false" + CharacterSet="2" + > + + + + + + SuppressStartupBanner="true" + /> + + + Name="VCPreLinkEventTool" + /> - - + TargetMachine="1" + /> + Name="VCALinkTool" + /> + Name="VCManifestTool" + /> + Name="VCXDCMakeTool" + /> + Name="VCBscMakeTool" + /> + Name="VCFxCopTool" + /> + Name="VCAppVerifierTool" + /> + Name="VCWebDeploymentTool" + /> + Name="VCPostBuildEventTool" + /> + ATLMinimizesCRunTimeLibraryUsage="false" + CharacterSet="2" + > + + + + + + SuppressStartupBanner="true" + DebugInformationFormat="4" + /> + + Name="VCResourceCompilerTool" + PreprocessorDefinitions="_DEBUG" + Culture="1033" + /> + - + TargetMachine="1" + /> + Name="VCALinkTool" + /> + Name="VCManifestTool" + /> + Name="VCXDCMakeTool" + /> + Name="VCBscMakeTool" + /> + Name="VCFxCopTool" + /> + Name="VCAppVerifierTool" + /> + Name="VCWebDeploymentTool" + /> - + Name="VCPostBuildEventTool" + /> @@ -132,103 +197,130 @@ + Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" + > + RelativePath="drawgrp.cpp" + > + Name="Release|Win32" + > + PreprocessorDefinitions="" + /> + Name="Debug|Win32" + > + BasicRuntimeChecks="3" + /> + RelativePath="..\grpapi\grpapi_no-lib.cpp" + > + Name="Release|Win32" + > + PreprocessorDefinitions="" + /> + Name="Debug|Win32" + > + BasicRuntimeChecks="3" + /> + RelativePath="StdAfx.cpp" + > + Name="Release|Win32" + > + PrecompiledHeaderThrough="stdafx.h" + /> + Name="Debug|Win32" + > + PrecompiledHeaderThrough="stdafx.h" + /> + RelativePath="..\LoadStorm\Storm.cpp" + > + Name="Release|Win32" + > + PreprocessorDefinitions="" + /> + Name="Debug|Win32" + > + BasicRuntimeChecks="3" + /> + Filter="h;hpp;hxx;hm;inl" + > + RelativePath="..\grpapi\grpapi_no-lib.h" + > + RelativePath="StdAfx.h" + > + RelativePath="..\LoadStorm\Storm.h" + > + Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" + > + RelativePath="ReadMe.txt" + > diff --git a/grpapi/grpapi.sln b/grpapi/grpapi.sln index 4aa5309..63329d9 100644 --- a/grpapi/grpapi.sln +++ b/grpapi/grpapi.sln @@ -1,25 +1,19 @@ -Microsoft Visual Studio Solution File, Format Version 8.00 +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual Studio 2005 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "drawgrp", "..\drawgrp\drawgrp.vcproj", "{10729DB2-5CEA-41BA-9C6F-B47BE5A3C242}" - ProjectSection(ProjectDependencies) = postProject - EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "grpapi", "grpapi.vcproj", "{08812E9C-7F03-4DCB-8828-F3BDB0728EC7}" - ProjectSection(ProjectDependencies) = postProject - EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "grplib", "grplib.vcproj", "{66127C6F-39DA-4B7A-9856-789ED0139DCB}" - ProjectSection(ProjectDependencies) = postProject - EndProjectSection EndProject Global GlobalSection(SourceCodeControl) = preSolution SccNumberOfProjects = 4 - SccProjectName0 = \u0022$/grpapi.root/grpapi\u0022,\u0020FEAAAAAA + SccProjectName0 = \u0022$/grpapi_VS2005.root/grpapi\u0022,\u0020IGAAAAAA SccLocalPath0 = .. SccProvider0 = MSSCCI:Microsoft\u0020Visual\u0020SourceSafe CanCheckoutShared = false SccProjectFilePathRelativizedFromConnection0 = grpapi\\ - SolutionUniqueID = {C7ACFA83-726F-4F2A-93F1-58F59B9D32B9} SccProjectUniqueName1 = ..\\drawgrp\\drawgrp.vcproj SccLocalPath1 = .. CanCheckoutShared = false @@ -33,26 +27,25 @@ Global CanCheckoutShared = false SccProjectFilePathRelativizedFromConnection3 = grpapi\\ EndGlobalSection - GlobalSection(SolutionConfiguration) = preSolution - Debug = Debug - Release = Release + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 EndGlobalSection - GlobalSection(ProjectConfiguration) = postSolution - {10729DB2-5CEA-41BA-9C6F-B47BE5A3C242}.Debug.ActiveCfg = Debug|Win32 - {10729DB2-5CEA-41BA-9C6F-B47BE5A3C242}.Debug.Build.0 = Debug|Win32 - {10729DB2-5CEA-41BA-9C6F-B47BE5A3C242}.Release.ActiveCfg = Release|Win32 - {10729DB2-5CEA-41BA-9C6F-B47BE5A3C242}.Release.Build.0 = Release|Win32 - {08812E9C-7F03-4DCB-8828-F3BDB0728EC7}.Debug.ActiveCfg = Debug|Win32 - {08812E9C-7F03-4DCB-8828-F3BDB0728EC7}.Debug.Build.0 = Debug|Win32 - {08812E9C-7F03-4DCB-8828-F3BDB0728EC7}.Release.ActiveCfg = Release|Win32 - {08812E9C-7F03-4DCB-8828-F3BDB0728EC7}.Release.Build.0 = Release|Win32 - {66127C6F-39DA-4B7A-9856-789ED0139DCB}.Debug.ActiveCfg = Debug|Win32 - {66127C6F-39DA-4B7A-9856-789ED0139DCB}.Debug.Build.0 = Debug|Win32 - {66127C6F-39DA-4B7A-9856-789ED0139DCB}.Release.ActiveCfg = Release|Win32 - {66127C6F-39DA-4B7A-9856-789ED0139DCB}.Release.Build.0 = Release|Win32 + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {10729DB2-5CEA-41BA-9C6F-B47BE5A3C242}.Debug|Win32.ActiveCfg = Debug|Win32 + {10729DB2-5CEA-41BA-9C6F-B47BE5A3C242}.Debug|Win32.Build.0 = Debug|Win32 + {10729DB2-5CEA-41BA-9C6F-B47BE5A3C242}.Release|Win32.ActiveCfg = Release|Win32 + {10729DB2-5CEA-41BA-9C6F-B47BE5A3C242}.Release|Win32.Build.0 = Release|Win32 + {08812E9C-7F03-4DCB-8828-F3BDB0728EC7}.Debug|Win32.ActiveCfg = Debug|Win32 + {08812E9C-7F03-4DCB-8828-F3BDB0728EC7}.Debug|Win32.Build.0 = Debug|Win32 + {08812E9C-7F03-4DCB-8828-F3BDB0728EC7}.Release|Win32.ActiveCfg = Release|Win32 + {08812E9C-7F03-4DCB-8828-F3BDB0728EC7}.Release|Win32.Build.0 = Release|Win32 + {66127C6F-39DA-4B7A-9856-789ED0139DCB}.Debug|Win32.ActiveCfg = Debug|Win32 + {66127C6F-39DA-4B7A-9856-789ED0139DCB}.Debug|Win32.Build.0 = Debug|Win32 + {66127C6F-39DA-4B7A-9856-789ED0139DCB}.Release|Win32.ActiveCfg = Release|Win32 + {66127C6F-39DA-4B7A-9856-789ED0139DCB}.Release|Win32.Build.0 = Release|Win32 EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - EndGlobalSection - GlobalSection(ExtensibilityAddIns) = postSolution + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE EndGlobalSection EndGlobal diff --git a/grpapi/grpapi.vcproj b/grpapi/grpapi.vcproj index 6198eb0..3b7bb5e 100644 --- a/grpapi/grpapi.vcproj +++ b/grpapi/grpapi.vcproj @@ -1,144 +1,207 @@ + SccProvider="MSSCCI:Microsoft Visual SourceSafe" + > + Name="Win32" + /> + + + ATLMinimizesCRunTimeLibraryUsage="false" + CharacterSet="2" + > + + + + + + SuppressStartupBanner="true" + DebugInformationFormat="4" + /> + Name="VCManagedResourceCompilerTool" + /> + + - - + TargetMachine="1" + /> + Name="VCALinkTool" + /> + Name="VCManifestTool" + /> + Name="VCXDCMakeTool" + /> + Name="VCBscMakeTool" + /> + Name="VCFxCopTool" + /> + Name="VCAppVerifierTool" + /> + Name="VCWebDeploymentTool" + /> + Name="VCPostBuildEventTool" + /> + ATLMinimizesCRunTimeLibraryUsage="false" + CharacterSet="2" + > + + + + + + SuppressStartupBanner="true" + /> + Name="VCManagedResourceCompilerTool" + /> + + - - + TargetMachine="1" + /> + Name="VCALinkTool" + /> + Name="VCManifestTool" + /> + Name="VCXDCMakeTool" + /> + Name="VCBscMakeTool" + /> + Name="VCFxCopTool" + /> + Name="VCAppVerifierTool" + /> + Name="VCWebDeploymentTool" + /> + Name="VCPostBuildEventTool" + /> @@ -146,63 +209,80 @@ + Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" + > + RelativePath="grpapi.cpp" + > + Name="Debug|Win32" + > + BasicRuntimeChecks="3" + /> + Name="Release|Win32" + > + PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_MBCS;_USRDLL;GRPAPI_EXPORTS;$(NoInherit)" + /> + RelativePath="grpapi.def" + > + RelativePath="grpapi.rc" + > + RelativePath="..\LoadStorm\Storm.cpp" + > + Name="Debug|Win32" + > + BasicRuntimeChecks="3" + /> + Name="Release|Win32" + > + PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_MBCS;_USRDLL;GRPAPI_EXPORTS;$(NoInherit)" + /> + Filter="h;hpp;hxx;hm;inl" + > + RelativePath="grpapi.h" + > + RelativePath="..\LoadStorm\Storm.h" + > + Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" + > diff --git a/grpapi/grplib.vcproj b/grpapi/grplib.vcproj index f48df3e..38a197b 100644 --- a/grpapi/grplib.vcproj +++ b/grpapi/grplib.vcproj @@ -1,115 +1,165 @@ + SccProvider="MSSCCI:Microsoft Visual SourceSafe" + > + Name="Win32" + /> + + + ATLMinimizesCRunTimeLibraryUsage="false" + CharacterSet="2" + > + + + + + - - + SuppressStartupBanner="true" + DebugInformationFormat="4" + /> + Name="VCManagedResourceCompilerTool" + /> + Name="VCResourceCompilerTool" + PreprocessorDefinitions="_DEBUG" + Culture="1033" + /> + Name="VCPreLinkEventTool" + /> + Name="VCLibrarianTool" + OutputFile="Debug\grp_static.lib" + SuppressStartupBanner="true" + /> + Name="VCALinkTool" + /> + Name="VCXDCMakeTool" + /> + Name="VCBscMakeTool" + /> + Name="VCFxCopTool" + /> + Name="VCPostBuildEventTool" + /> + ATLMinimizesCRunTimeLibraryUsage="false" + CharacterSet="2" + > + + + + + - - + SuppressStartupBanner="true" + /> + Name="VCManagedResourceCompilerTool" + /> + Name="VCResourceCompilerTool" + PreprocessorDefinitions="NDEBUG" + Culture="1033" + /> + Name="VCPreLinkEventTool" + /> + Name="VCLibrarianTool" + OutputFile="Release\grp_static.lib" + SuppressStartupBanner="true" + /> + Name="VCALinkTool" + /> + Name="VCXDCMakeTool" + /> + Name="VCBscMakeTool" + /> + Name="VCFxCopTool" + /> + Name="VCPostBuildEventTool" + /> @@ -117,55 +167,70 @@ + Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" + > + RelativePath="grpapi.cpp" + > + Name="Debug|Win32" + > + BasicRuntimeChecks="3" + /> + Name="Release|Win32" + > + PreprocessorDefinitions="" + /> + RelativePath="..\LoadStorm\Storm.cpp" + > + Name="Debug|Win32" + > + BasicRuntimeChecks="3" + /> + Name="Release|Win32" + > + PreprocessorDefinitions="" + /> + Filter="h;hpp;hxx;hm;inl" + > + RelativePath="grp_static.h" + > + RelativePath="grpapi.h" + > + RelativePath="..\LoadStorm\Storm.h" + > diff --git a/LoadStorm/Storm.cpp b/loadstorm/Storm.cpp similarity index 100% rename from LoadStorm/Storm.cpp rename to loadstorm/Storm.cpp diff --git a/LoadStorm/Storm.h b/loadstorm/Storm.h similarity index 100% rename from LoadStorm/Storm.h rename to loadstorm/Storm.h