PRB: PView Sample Does Not Behave Correctly

Last reviewed: January 18, 1996
Article ID: Q119502
The information in this article applies to:
  • Microsoft Visual C++ 32-bit Edition, version 1.0

SYMPTOMS

Build and run the PView sample included with Visual C++ 32-bit Edition. The box labeled "Process, CPU Time, Privileged, and User" is not filled with the expected strings. When you select the button titled "Memory Detail", the following error dialog box displays:

    -------------------------------------------
   |              Memory Detail                |
   |-------------------------------------------|
   |                                           |
   |     Unable to retrieve memory detail.     |
   |                                           |
    -------------------------------------------

CAUSE

The system performance monitor APIs return UNICODE strings. For the strings to be displayed properly, UNICODE must be defined when you compile the sample program.

RESOLUTION

Modify the makefile compiler options to include /DUNICODE. This has been done for you in Visual C++ version 2.0.


Additional reference words: 1.00
KBCategory: kbtool kbprb
KBSubcategory: CodeSam


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: January 18, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.