Solved

Unicode Projects in VC++ 6

Posted on 2001-07-08
4
1,137 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

635 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