Microsoft Knowledge Base Email Alertz

KBAlertz.com: MFC Control Paints Differently in Japanese Version of Windows Vista

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 2.0 Web Hosting with SQL 2005: Click Here!
Discount ASP.NET Hosting


Bug Tracking Software
For bug tracking software or defect tracking software or issue tracking software, visit Axosoft.


Community Site



We Send hundreds of thousands of emails using ASP.NET Email



Expert Web Design & Graphic Design
Design44.com




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




MFC Control Paints Differently in Japanese Version of Windows Vista

Article ID:949026
Last Review:February 11, 2008
Revision:1.2
Source: Microsoft Support

Back to the top

RAPID PUBLISHING

RAPID PUBLISHING ARTICLES PROVIDE INFORMATION DIRECTLY FROM WITHIN THE MICROSOFT SUPPORT ORGANIZATION. THE INFORMATION CONTAINED HEREIN IS CREATED IN RESPONSE TO EMERGING OR UNIQUE TOPICS, OR IS INTENDED SUPPLEMENT OTHER KNOWLEDGE BASE INFORMATION.

Back to the top

Action

On a computer running the Japanese version of Windows Vista, you are running an application that uses a Microsoft Foundation Classes (MFC) 4.2 ActiveX control compiled with Visual C++ 6.0.

Back to the top

Result

The control is not drawn correctly. Parts of it may not be drawn at all, or drawn out of place.

Back to the top

Cause

The version of MFC42.dll that shipped with Windows Vista is causing the drawing disparity.

Back to the top

Resolution

There are two possible resolutions:

1. Upgrade the Visual C++ 6.0 project to Visual C++ 2005 or later, and rebuild it. This is the recommended approach since Visual C++ 6.0 is no longer supported.

2. Use Side-by-Side Deployment with a copy of the legacy version of MFC42.dll in the application folder.

    To do this:

    A. Place a copy of MFC42.dll from a Windows XP Pro machine in the application folder of the application which hosts the control.

    B. In the application folder, create an empty text file named:

            myApplication.exe.local

            where myApplication is the name of the host application.

Back to the top

DISCLAIMER

MICROSOFT AND/OR ITS SUPPLIERS MAKE NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY, RELIABILITY OR ACCURACY OF THE INFORMATION CONTAINED IN THE DOCUMENTS AND RELATED GRAPHICS PUBLISHED ON THIS WEBSITE (THE “MATERIALS”) FOR ANY PURPOSE. THE MATERIALS MAY INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS AND MAY BE REVISED AT ANY TIME WITHOUT NOTICE.

TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, MICROSOFT AND/OR ITS SUPPLIERS DISCLAIM AND EXCLUDE ALL REPRESENTATIONS, WARRANTIES, AND CONDITIONS WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO REPRESENTATIONS, WARRANTIES, OR CONDITIONS OF TITLE, NON INFRINGEMENT, SATISFACTORY CONDITION OR QUALITY, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE MATERIALS.

Back to the top


APPLIES TO
•Microsoft Visual C++, 32-bit Enterprise Edition 6.0 SP5
•Microsoft Visual Basic 6.0 Enterprise Edition

Back to the top

Keywords: 
kbnomt kbrapidpub KB949026

Back to the top

       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

kleinma - http://www.zerosandtheone.com Report As Irrelevant  
Written: 2/12/2008 10:19 AM
This is not a VB6 problem, but I received email notification with this KB under the VB6 header. I don't even get C KB articles.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please