]> git.saurik.com Git - wxWidgets.git/commit
Fix entry point in Unicode build of the MFC sample.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 12 Jan 2011 13:39:16 +0000 (13:39 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 12 Jan 2011 13:39:16 +0000 (13:39 +0000)
commit0c9786de3a5d0315a252854305bf771196e34224
tree0f0efd77dba4c6a40921a13032a7b658a56fd67e
parentbf3ed077c1be511252e4f43961ac6ea51c454e90
Fix entry point in Unicode build of the MFC sample.

MFC needs the entry point to be wWinMainCRTStartup() in Unicode builds but the
bakefile-generated projects use the default WinMain() so the sample didn't
link in Unicode.

Fix this by providing WinMain() which simply forwards to wWinMainCRTStartup()
as this seems to work for all MSVC/CRT versions.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
samples/mfc/mfctest.cpp