Click here to Skip to main content
15,906,558 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
General"Random Access" writing to files Pin
Jon Hulatt22-Aug-04 22:16
Jon Hulatt22-Aug-04 22:16 
GeneralRe: "Random Access" writing to files Pin
David Salter22-Aug-04 22:27
David Salter22-Aug-04 22:27 
GeneralRe: "Random Access" writing to files Pin
Jon Hulatt22-Aug-04 22:49
Jon Hulatt22-Aug-04 22:49 
GeneralRe: "Random Access" writing to files Pin
David Salter22-Aug-04 23:36
David Salter22-Aug-04 23:36 
GeneralMany tabs using one serial port Pin
chauteen22-Aug-04 22:09
chauteen22-Aug-04 22:09 
GeneralRe: Many tabs using one serial port Pin
ThatsAlok23-Aug-04 1:13
ThatsAlok23-Aug-04 1:13 
GeneralLinker problems Pin
alex.barylski22-Aug-04 21:59
alex.barylski22-Aug-04 21:59 
GeneralRe: Linker problems Pin
De Nardis Andrea23-Aug-04 0:03
De Nardis Andrea23-Aug-04 0:03 
PRB: Error LNK2001: '_WinMain@16': Unresolved External Symbol
Si applica a
This article was previously published under Q125750
NOTE: Microsoft Visual C++ NET (2002) supported both the managed code model that is provided by the .NET Framework and the unmanaged native Windows code model. The information in this article applies to unmanaged Visual C++ code only.
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"
Visual C++ .NET:

error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup
fatal error LNK1120: 1 unresolved externals
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.

For Visual C++ .NET: In the Advanced category of the Linker folder in the Project Properties dialog box, set the Entry Point 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. Smile | :)

QuestionDavidCrow does't know this any one knows this? Pin
kriaz22-Aug-04 21:40
kriaz22-Aug-04 21:40 
AnswerRe: DavidCrow does't know this any one knows this? Pin
alex.barylski22-Aug-04 21:55
alex.barylski22-Aug-04 21:55 
AnswerRe: DavidCrow does't know this any one knows this? Pin
Maximilien23-Aug-04 0:56
Maximilien23-Aug-04 0:56 
AnswerRe: DavidCrow does't know this any one knows this? Pin
Antony M Kancidrowski23-Aug-04 3:05
Antony M Kancidrowski23-Aug-04 3:05 
AnswerRe: DavidCrow does't know this any one knows this? Pin
Jeremy Falcon23-Aug-04 6:51
professionalJeremy Falcon23-Aug-04 6:51 
GeneralCFile gives me 0x20 (ERROR_BAD_UNIT) but fopen doesn't Pin
baboguru22-Aug-04 21:10
baboguru22-Aug-04 21:10 
GeneralRe: CFile gives me 0x20 (ERROR_BAD_UNIT) but fopen doesn't Pin
vcplusplus23-Aug-04 3:14
vcplusplus23-Aug-04 3:14 
GeneralRe: CFile gives me 0x20 (ERROR_BAD_UNIT) but fopen doesn't Pin
baboguru23-Aug-04 16:05
baboguru23-Aug-04 16:05 
GeneralRe: CFile gives me 0x20 (ERROR_BAD_UNIT) but fopen doesn't Pin
Blake Miller24-Aug-04 8:36
Blake Miller24-Aug-04 8:36 
QuestionIs there any way to format and print an UNICODE string in which there are some zero byte? Pin
samfromcn22-Aug-04 19:47
samfromcn22-Aug-04 19:47 
AnswerRe: Is there any way to format and print an UNICODE string in which there are some zero byte? Pin
Milton Karimbekallil22-Aug-04 21:23
Milton Karimbekallil22-Aug-04 21:23 
AnswerRe: Is there any way to format and print an UNICODE string in which there are some zero byte? Pin
GDavy22-Aug-04 21:41
GDavy22-Aug-04 21:41 
Generalpassing filename into Pin
Abhi Lahare22-Aug-04 19:02
Abhi Lahare22-Aug-04 19:02 
GeneralRe: passing filename into Pin
Abhi Lahare23-Aug-04 0:21
Abhi Lahare23-Aug-04 0:21 
GeneralMoveFile crashing Pin
alex.barylski22-Aug-04 18:58
alex.barylski22-Aug-04 18:58 
GeneralRe: MoveFile crashing Pin
palbano22-Aug-04 19:10
palbano22-Aug-04 19:10 
GeneralRe: MoveFile crashing Pin
alex.barylski22-Aug-04 19:40
alex.barylski22-Aug-04 19:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.