Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: UNICODE is not defined in a Visual C++ Win32 console application in Windows Embedded Compact 2013


View products that this article applies to.

This article describes an issue that occurs when you create a Visual C++ Win32 console application in Windows Embedded Compact 2013. An update is available to resolve this issue. Before you install this update, all previously issued updates for this product must be installed.

↑ Back to the top


Symptoms

When you create a Visual C++ Win32 console application by using Application Builder in Microsoft Visual Studio 2013, UNICODE is not defined in the newly created project. Example code are as follows:
int wmain(int argc, wchar_t *argv[])
{
printf("Welcome to Windows Embedded Project System \n");

#ifdef UNICODE
printf("UNICODE is defined. \n");
#else
printf("UNICODE is NOT defined. \n");
#endif

printf("Please inster a char to end this app.");
int c = getchar();
return 0;
}

↑ Back to the top


Resolution

Download information

Windows Embedded Compact 2013 Monthly Update (March 2015) is now available from Microsoft. To download this Windows Embedded Compact 2013 monthly update, go to Microsoft OEM Online or MyOEM.

↑ Back to the top


More Information

Restart requirement

After you apply this update, you must perform a clean build of the whole platform. To do this, use one of the following methods:
  • On the Build menu, click Clean Solution, and then click Build Solution.
  • On the Build menu, click Rebuild Solution.
You do not have to restart the computer after you apply this software update.

Update replacement information

This update does not replace any other updates.
File information
The English version of this software update package has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

Files that are included in this hotfix package


File nameFile sizeDateTimePath
Stdafx.h71602-Feb-201510:05Public\Common\Sdk\Vstemplates\Vc\Windows embedded compact\Sdk_name\1033\Atldll
Stdafx.h88702-Feb-201510:05Public\Common\Sdk\Vstemplates\Vc\Windows embedded compact\Sdk_name\1033\Application
Stdafx.h71602-Feb-201510:05Public\Common\Sdk\Vstemplates\Vc\Windows embedded compact\Sdk_name\1033\Atlapplication
Stdafx.h84102-Feb-201510:05Public\Common\Sdk\Vstemplates\Vc\Windows embedded compact\Sdk_name\1033\Dll
Stdafx.h48402-Feb-201510:05Public\Common\Sdk\Vstemplates\Vc\Windows embedded compact\Sdk_name\1033\Consoleapplication
Stdafx.h1,07002-Feb-201510:05Public\Common\Sdk\Vstemplates\Vc\Windows embedded compact\Sdk_name\1033\Mfcdll
Stdafx.h1,59602-Feb-201510:05Public\Common\Sdk\Vstemplates\Vc\Windows embedded compact\Sdk_name\1033\Mfcactivexcontrol
Stdafx.h1,33102-Feb-201510:05Public\Common\Sdk\Vstemplates\Vc\Windows embedded compact\Sdk_name\1033\Mfcapplication
Stdafx.h78902-Feb-201510:05Public\Common\Sdk\Vstemplates\Vc\Windows embedded compact\Sdk_name\1033\Staticlibrary


↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


References

↑ Back to the top


Keywords: kbfix, kbsurveynew, kbexpertiseadvanced, atdownload, kb

↑ Back to the top

Article Info
Article ID : 3037100
Revision : 1
Created on : 1/7/2017
Published on : 4/20/2015
Exists online : False
Views : 162