Added .GetString() to all CStrings passed in vargs

This commit is contained in:
Chris Danford
2002-10-29 07:58:44 +00:00
parent 621d419f22
commit ec202633e9
34 changed files with 184 additions and 182 deletions
+7 -4
View File
@@ -220,6 +220,9 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE, LPSTR CmdLine, int nCmdShow
SetCurrentDirectory( szFullAppPath );
}
/*
This was a stupid idea... -Chris
//
// Check for packages in the AutoInstall folder
//
@@ -227,7 +230,7 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE, LPSTR CmdLine, int nCmdShow
GetDirListing( "AutoInstall\\*.smzip", asPackagePaths, false, true );
for( i=0; i<asPackagePaths.GetSize(); i++ )
{
CString sCommandLine = ssprintf( "smpackage.exe %s", asPackagePaths[i] );
CString sCommandLine = ssprintf( "smpackage.exe %s", asPackagePaths[i].GetString() );
PROCESS_INFORMATION pi;
STARTUPINFO si;
@@ -246,7 +249,7 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE, LPSTR CmdLine, int nCmdShow
&pi // pointer to PROCESS_INFORMATION
);
}
*/
CoInitialize (NULL); // Initialize COM
@@ -360,7 +363,7 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE, LPSTR CmdLine, int nCmdShow
"Exception: %s\n"
"//////////////////////////////////////////////////////\n"
"\n",
g_sErrorString
g_sErrorString.GetString()
);
}
@@ -1040,7 +1043,7 @@ void ApplyGraphicOptions()
iDisplayHeight,
iTextureSize,
iTextureSize,
bWindowed ? "" : ssprintf(", %dHz", iRefreshRate)
bWindowed ? "" : ssprintf(", %dHz", iRefreshRate).GetString()
);
//