Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Unicode Projects in VC++ 6

Posted on 2001-07-08
4
Medium Priority
?
1,159 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 200 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

971 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