Solved

Unicode Projects in VC++ 6

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
windows 10 how make picture as desktop background 2 47
WinWaitActive parameters 12 31
string initialization in java 11 103
fix34  challenge 9 96
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

708 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