Solved

Unicode Projects in VC++ 6

Posted on 2001-07-08
4
1,106 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

895 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now