Václav Slavík
605ff820f5
Mark wx apps as DPI aware on Windows 7/Vista.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-16 10:22:45 +00:00
Vadim Zeitlin
9a83f86094
Globally replace _T() with wxT().
...
Standardize on using a single macro across all wxWidgets sources and solve the name clash with Sun CC standard headers (see #10660 ).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-23 20:30:22 +00:00
Vadim Zeitlin
5470512797
disable warning about _set_se_translator() requiring /EHa for VC9 too (it was disabled for up to VC8)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-06 23:27:37 +00:00
Vadim Zeitlin
b97d1013cf
remove wxSETranslator() entirely from wxUSE_ON_FATAL_EXCEPTION==0 build (part of #9803 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-01 14:22:42 +00:00
Vadim Zeitlin
9cf3d21870
added wxApp::Set/GetAppDisplayName() (patch 1780414)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-09 23:26:18 +00:00
Václav Slavík
52de37c78f
1. made CRT wrappers definitions indepenent of wxUSE_UNICODE: both ANSI and Unicode variants are now defined
...
2. split wxcrt.h into wxcrtbase.h with lowlevel compiler-specific definitions and wxcrt.h with ANSI- and Unicode-compatible wx wrappers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46390 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-10 17:14:14 +00:00
Vadim Zeitlin
d76a558d4d
added wxMSW-specific wxEntryStart() overload taking WinMain-like parameters
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-25 00:52:00 +00:00
Václav Slavík
c9f7896861
first phase of transition to unified Unicode build:
...
1. changed c_str() to return wxCStrData (implicitly convertible to wxChar*)
2. added template type-safe wrappers for vararg functions
3. added wxUniChar class representing single Unicode character
4. changed wxString::operator[] and wxString::iterator to return wxUniChar
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-17 10:26:10 +00:00
Vadim Zeitlin
c43507b0fe
include wx/utils.h in PCH-less build to ensure that we get the correct (DLL-exported) declaration of wxHandleFatalExceptions() as otherwise it was silently not exported (patch 1674514)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44724 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-10 17:21:40 +00:00
Vadim Zeitlin
23c06cde5d
ignore warning 4535 for VC8 too as it still seems to be harmless
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-09 14:38:41 +00:00
Paul Cornett
406d283a64
build fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40653 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-17 03:02:15 +00:00
Włodzimierz Skiba
670f993563
Include wx/app.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-28 12:44:37 +00:00
Włodzimierz Skiba
d5da0ce7cb
Include wx/event.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-27 12:47:14 +00:00
Vadim Zeitlin
39ea2103cd
handle fatal exceptions in the other threads (based on patch 1459813 by Carl-Friedrich Braun)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-26 18:04:15 +00:00
Vadim Zeitlin
48733d4741
move the code freeing temporary argv array to wxEntry(HINSTANCE) overload to avoid doing it twice in some cases
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-03 23:06:54 +00:00
Vadim Zeitlin
c8a448977c
removed DllMain(): we don't even compile it with any compiler but VC8 and with VC8 it results in a crash; we need another way to make it possible to use wx DLL from another DLL, this one is flawed
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36482 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-19 14:34:12 +00:00
Mart Raudsepp
8907154c1a
Nuke #pragma implementation/interface's
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Vadim Zeitlin
774960ce3c
corrected #ifdefs testing wxUSE_UNICODE_MSLU
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-28 13:11:18 +00:00
Vadim Zeitlin
6f2df739f4
check whether unicows.dll works correctly instead of just crashing if we linked it in wrong order (i.e. not before wx libs)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-19 17:10:24 +00:00
Vadim Zeitlin
69c54afe21
check for unicows.dll on program starup when wxUSE_UNICODE_MSLU==1
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-19 16:47:25 +00:00
Włodzimierz Skiba
532d575bd9
Allow MSW Base be usable in other ports than wxMSW (ie. wxTVision in windows console). Adjustements for limited setup.h (as in wxTV) and minor source cleaning.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-10 17:53:19 +00:00
Vadim Zeitlin
bd86627171
check for Unicode being used under Win9x much earlier on startup as otherwise the app crashes before getting to this check
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-06 00:03:00 +00:00
Julian Smart
3103e8a97e
Typo correction patch [ 1208110 ] Lots of typo corrections
...
Olly Betts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-31 09:20:43 +00:00
Julian Smart
e5f679554c
Applied [ 1205187 ] fix may not return warning on vc6 (bug 1204692)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34255 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-22 14:45:02 +00:00
Vadim Zeitlin
ad44b2c7ff
fix VC++ warning in debug build after latest fix to warning in release
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33983 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-08 10:55:43 +00:00
Włodzimierz Skiba
3d104ec357
VC warning fixes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-06 06:09:24 +00:00
Vadim Zeitlin
84bdb0d8d7
compilation fix for wxUSE_ON_FATAL_EXCEPTION == 0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33078 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-26 19:07:13 +00:00
Vadim Zeitlin
7adf0b4de2
use HINSTANCE for first DllMain() parameter (should fix compilation with VC 2005)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-03 10:54:59 +00:00
Julian Smart
b734b2cafa
WinCE doesn't have _set_se_translator
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-16 00:08:28 +00:00
Julian Smart
c0aadc6f40
Absolutely no idea what DisableAutomaticSETranslator is but
...
WinCE doesn't like it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-15 22:54:38 +00:00
Vadim Zeitlin
1ac4716dd2
compilation fix for !wxUSE_ON_FATAL_EXCEPTION
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-12 13:54:52 +00:00
Vadim Zeitlin
226c11c076
don't translate Win32 structured exceptions into C++ ones (requires always using a special wxEntry for MSW in init.cpp)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-11 22:31:23 +00:00
Julian Smart
93710ae8e6
Avoid double-define on WinCE
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-11 09:20:59 +00:00
Vadim Zeitlin
58187c862c
only define globals when wxUSE_BASE to avoid duplicate definitions in wxBase and wxMSW (closes 1104289)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-18 13:11:24 +00:00
Vadim Zeitlin
b059b79da7
disable an apparently harmless VC++ warning about /EHa being required with _set_se_translator()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-17 02:01:33 +00:00
Vadim Zeitlin
8c125d136d
moved fatal exception handling code to msw/main.cpp from common code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31420 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-17 01:54:25 +00:00
Vadim Zeitlin
028e7716ef
wxGetInstance must be defined as extern C (patch 1085837)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-20 01:31:48 +00:00
Vadim Zeitlin
77d8d6cd64
added wxGetFullModuleName(); use it instead of calling ::GetModuleFileName() directly
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-27 10:58:32 +00:00
Julian Smart
13a5a49f36
Program args fix for WinCE
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-26 16:42:21 +00:00
Włodzimierz Skiba
43a6124f65
Some unnecessary wxUSE_MFC occurences removed following Vadim's experience (see wx-dev on 6.8.2004).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29078 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-10 13:24:20 +00:00
Włodzimierz Skiba
598ddd96f4
Source cleaning: -1/wxID_ANY/wxDefaultCoord, ::, !!, TRUE/true, FALSE/false, whitespaces, tabs.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28966 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-30 10:18:55 +00:00
Julian Smart
655719367a
Use old licence name
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e
Name and version changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
Vadim Zeitlin
7c8c7cc23e
WinMain() is Unicode under CE (how did this work before?)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26598 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-04 12:54:20 +00:00
Vadim Zeitlin
b2b1371c97
set argc/argv properly in Unicode build (fixes bug 878002)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25774 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-12 18:42:39 +00:00
Václav Slavík
ac9a3c615a
moved WinMain into the application even for static build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22933 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-16 15:30:25 +00:00
Václav Slavík
14f355c2b5
added support for gcc precompiled headers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-09 12:46:53 +00:00
Mattia Barbon
f3e28ade43
Remove incorrect and unnecessary wxEntryCleanup declaration.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-17 22:25:30 +00:00
Vadim Zeitlin
f252f8c35d
allocate string freed with free() later using malloc(), not new[] (fixes patch 772404)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22044 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-17 12:44:15 +00:00
Julian Smart
4676948b68
More WinCE mods
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-11 21:50:07 +00:00