Re: Why? The different funs in PB and EVC?

From: Steve Maillet \(eMVP\) (nospam1_at_EntelechyConsulting.com)
Date: 06/25/04


Date: Fri, 25 Jun 2004 12:44:46 -0400

There is support for the ANSI C run time that gets you char* argv[]; a
UNICODE version that gets you wmain and wchar* argv[] and a neutral version
that is _tmain and uses TCHAR* argv[] this is IDENTICAL to how it works on
the desktop. changing the entry startup and libs will select the one you
want. NOTE: that the OS calls are all still UNICODE only in Windows CE but
you can use the normal sprintf() etc.. C run time functions as ASCII Wide
character or neutral versions. For info on the neutral versions see TCHAR.H
and the help for ach runtime function.

PB does not have any project wizards for MFC nor ATL - it's not really an
application development tool. Though you can set WINCEMFC30=1 in a SOURCES
file to use MFC (there is still other settings and defines to make it work
if you absolutely had to but there is usually a better way.

WinMain is typically used for GUI applications.

-- 
Steve Maillet (eMVP)
EmbeddedFusion
smaillet_AT_EmbeddedFusion_DOT_com