Article ID: 192536 - View products that this article applies to.
This article was previously published under Q192536
When targeting Windows CE 2.00 and linking with C run-time dynamic libraries (Msvcrt.dll or Msvcrtd.dll), global C++ objects are not initialized.
If C++ global objects are being used, do not use the C run-time dynamic libraries. Use the static run-time libraries instead.
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.
The C run-time dynamic libraries were available only with Windows CE version 2.0. Devices using Windows CE version 1.0 or Windows CE 2.01 and later should not use these libraries. The following program demonstrates the problem when linked with Msvcrt or Msvcrtd: