Solved

Unicode Projects in VC++ 6

Posted on 2001-07-08
4
1,113 Views
Last Modified: 2013-11-20
At work, I installed VC++ 6 with MS Plateform SDK. When I create a MFC project and then I check Build->Set Active Configuration I could choose to compile UNICODE. I tryed this at home but I can't get the UNICODE options.

What should I do?
0
Comment
Question by:fmichaud061597
  • 2
  • 2
4 Comments
 
LVL 2

Expert Comment

by:GloriousRain
ID: 6263533
Hi,
All of Release, Debug, UNICODE configurations... are forms that you base on them to specify VC compiles your project. By default, a project after creating have release and debug configuration, if you want to have UNICODE configuration or some else in your project->select menu Build->Configuration...->Add.. new configuration. In new configuration you can specify some info you like for VC compiler treats your project.
Ex:
If you like UNICODE release configuration, Add New configuration name Win32 UNICODE Release
Open Project Settings window:
+ C/C++ tab:
- Optimizations: Maximize Speed
- Generate browse info: uncheck
- Debug Info: None
- Preprocessor definitions: add _UNICODE
+ Link tab:
- Generate Debug Info: Uncheck
- Link incrementally: uncheck
- Enable profiling: Uncheck

0
 

Author Comment

by:fmichaud061597
ID: 6263563
I'v already tryed this and I get that error:

msvcrtd.lib(crtexew.obj) : error LNK2001: unresolved external symbol _WinMain@16
0
 
LVL 2

Accepted Solution

by:
GloriousRain earned 50 total points
ID: 6263589
Hi, look this
<MSDN>
PRB: Error LNK2001: '_WinMain@16': Unresolved External Symbol

Q125750


--------------------------------------------------------------------------------
The information in this article applies to:

The C Run-Time (CRT), used with:
Microsoft Visual C++, 32-bit Editions, versions 2.0, 2.1, 4.0, 5.0, 6.0

--------------------------------------------------------------------------------


SYMPTOMS
The linker generates the following error, when you build an MFC application with UNICODE support using the Microsoft products listed at the beginning of this article:

msvcrt.lib(crtexew.obj) : error LNK2001: unresolved external
symbol "_WinMain@16"



CAUSE
MFC UNICODE applications use wWinMainCRTStartup as the entry point.



RESOLUTION
In the Output category of the Link tab in the Project Settings dialog box, set the Entry Point Symbol to wWinMainCRTStartup.



STATUS
This behavior is by design.



REFERENCES
The above information is documented in Books Online under this structure:


 - C/C++
    - Programming Techniques
       - Chapter 12 Developing for International Markets
          - Support for Unicode
             - Unicode Programming: Summary
This reference also lists the additional steps that you need to consider to take advantage of the MFC and C run-time support for Unicode.
eedback to MSDN.Look here for MSDN Online resources.
<MSDN>

That mean you have to use the /ENTRY option or type this value in the Project Settings dialog box
0
 

Author Comment

by:fmichaud061597
ID: 6263626
Great, thank you very much!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Get filename and folder into excel 7 76
iSeries DB2 Query 2 95
sameEnds challenge 3 161
noX challenge 17 119
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question