INFO: Must Build Win32s Apps Using C Run-Time (CRT) Libraries

Last reviewed: October 3, 1997
Article ID: Q149412
The information in this article applies to:
  • The C Run-time (CRT) included with: - Microsoft Visual C++, 32-bit Edition, versions 2.0, 2.1, 2.2, 4.0, 5.0

SUMMARY

When you build an application for Win32s with Visual C++, you must build it to use the DLL version of the C run-time (CRT) library. Building with the static versions of the libraries is not supported.

For more information about the different versions of the CRT libraries, please see the following articles in the Microsoft Knowledge Base:

   ARTICLE-ID: Q28173
   TITLE     : C Run-time Library History and Naming Conventions

   ARTICLE-ID: Q140584
   TITLE     : How to Link with the Correct C Run-Time (CRT) Library

MORE INFORMATION

The static versions of the CRT libraries were not designed for Win32s. There is a specific version of the CRT in a DLL that is designed for Win32s, and takes into account the differences between Win32s and the native Win32 platforms.

The CRT in a DLL is named Msvcrt20.dll for versions 2.x and Msvcrt40.dll for version 4.0. It is located in the Win32s\Redist subdirectory on the Visual C++ CD-ROM.


Additional query words: R6016 thread data
Keywords : CRTIss
Version : WINNT:2.0,2.1,2.2,4.0,5.0;
Platform : NT WINDOWS
Issue type : kbinfo


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 3, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.