Microsoft Visual C++ 6.0 でプログラムを作成する場合、DLL 版の C ランタイムライ ブラリを使用することで実行ファイルのサイズを節約できます。多くの標準ライブラリ は MSVCRT.DLL に格納されていますが、iostream をはじめとする「比較的新しい」C++ ライブラリは MSVCP60.DLL というファイルに格納されています。
MSVCRT.DLL は Windows 95 OSR 2.5 以降、もしくは Windows 95 + Internet Explorer 4.0 以降がインストールされている環境には必ず存在するのですが、MSVCP60.DLL は開 発環境以外ではインストールされていることが期待できません。
せっかく DLL 版のランタイムライブラリをリンクしても MSVCP60.DLL (400KB) を同時 に配布するのでは、配布ファイルのサイズはかえって大きくなってしまいます。そこで MSVCP60.DLL から、必要最小限のクラスを抜き出して実装したのが CPPRT.DLL です。
なお、私が開発しているソフトウェアで必要になった char_traits, bad_alloc のみを 実装してありますので、必要に応じて手を入れて使ってください。
Copyright (c) 2001, 2002 Issei Suzuki <issei@issei.org> All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.