Commit Graph

27 Commits

Author SHA1 Message Date
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
43b2d5e7c3 Put braces around all calls to wxLogFunctions() inside an if statement.
This suppresses all the remaining g++ -Wparentheses warnings and uses consistent style everywhere.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-20 16:47:54 +00:00
Vadim Zeitlin
521d34369b log Unicode data correctly, extract the logging code in MyConnectionBase class instead of quadriplicating it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-10 23:43:39 +00:00
Vadim Zeitlin
50c549b98d many wxIPC Unicode and UTF-8 fixes (use void* instead of wxChar* in the API and UTF-8 as wire format for wxStrings) (patch 1812926)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-20 22:54:26 +00:00
Vadim Zeitlin
1e0f0a90e0 made strings used in wxIPC methods const as a temporary compilation fix (they will need to be also made void* and not wxChar* later) (patch 1759924)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-27 23:59:11 +00:00
Václav Slavík
bd0b594dff compilation fixes after string changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-27 20:49:19 +00:00
Vadim Zeitlin
45e6e6f8ab call OnInit() from all samples to allow using standard command line options with all of them (patch 1623971)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-04 00:34:18 +00:00
Julian Smart
5e530f0226 Minor corrections
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-26 16:49:39 +00:00
Włodzimierz Skiba
81ba610721 Avoid conflict between wxWindow::Enable and MyFrame::Enable.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-16 16:09:49 +00:00
Vadim Zeitlin
b21348b405 don't compare bools with NULL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36266 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-27 14:03:36 +00:00
Michael Wetherell
9b70ed7b55 Small fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-27 09:29:46 +00:00
Michael Wetherell
d2797f557a Fixes for passing non-PODs via '...'
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-14 21:10:34 +00:00
Julian Smart
9d86099269 Applied patch [ 1263950 ] wxConnection fixes for Unicode
By Jurgen Doornik


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35470 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-11 18:31:34 +00:00
Włodzimierz Skiba
b62ca03d6f -1->wxID_ANY, TRUE->true and FALSE->false replacements.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-02 17:03:20 +00:00
Mattia Barbon
87728739f2 Various warning and Unicode fixes from ABX.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-09 20:24:34 +00:00
Mattia Barbon
600683ca05 Fixed all remaining samples/Unicode compilation errors.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-15 17:25:36 +00:00
Julian Smart
f010ad4812 Applied patch [ 600051 ] DDE and TCP improvements and fixes
By Michael Fielding

As discussed on wx-dev. some fixes and improvements for Interprocess Communication (IPC), using DDE and TCP.

1. DDE buffers were using a global buffer
2. TCP buffers were allocated each time needed, and Request would have caused memory leaks had it been used.

Fixed these both by using a self-resizing buffer in wxConnectionBase. Changed samples and docs to reflect the improved (but backward compatible) internal buffer management. wxConnectionBase could (in future) use wxMemoryBuffer.

3. IPC sample had trouble closing, causing crash, when closing server using window X button.

Because it was (effectively) trying to delete a window in OnExit, when that window was already destroyed. Fixed by making IPCDialog and MyConnection remember if they'd destroyed each other. It's not elegant, but either the connection or the window could be deleted first.

4. Docs for wxDDE... and wxTCP... duplicated eachother, supposed to have same API. Some parts unclear.

Patch removes dde and tcp-specific files (including from tipc.tex and classes.tex), and explains how ipc.h selects for you which one to use based on platform. Some other misc clarifications.

6. Client sample was suffering apparent memory leak because of not deleting connection object, and had a hack in there to do that.

In fact this was due to the derived OnDisconnect not deleting itself, as it does in base class. Mentioned need to do it in docs, fixed sample so that it does.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-01 14:48:16 +00:00
Vadim Zeitlin
d5172a588c added wx/ipc.h and used/documented it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-15 18:24:46 +00:00
Vadim Zeitlin
39d580f7dc minor cosmetic fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-27 19:00:49 +00:00
Julian Smart
618f2efa41 Added __WXX11__ tests where appropriate
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-21 10:32:18 +00:00
Vadim Zeitlin
2f6c54eb07 patch from Dimitri fixing a few memory leaks and unTABbing the sources
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-17 14:16:03 +00:00
Gilles Depeyrot
42993df25e correction for compilation under Mac OS X
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-24 09:28:33 +00:00
Bryan Petty
f6bcfd974e merged 2.2 branch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-07-15 19:51:35 +00:00
Vadim Zeitlin
b7e1921351 some warnings fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-11 00:47:45 +00:00
Guillermo Rodriguez Garcia
6097c3a28a Socket sample:
- Test 3 added to test large transfers involving multiple low level calls.
- Stub for datagram socket tests (not yet in place)

IPC sample:
- Client no longer needs to use GetHostName for DDE and LocalHost for IPC;
now it can just use GetHostName for both (because now the IPC server binds to
INADDR_ANY instead of binding to localhost).
- Fixed once again another warning about wxString objects that can't be
passed through '...'


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-01-21 03:16:02 +00:00
Vadim Zeitlin
4b89c61845 cleaned IPC samples a bit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-01-15 22:34:29 +00:00
Vadim Zeitlin
70d26c3f4f renaming and moving samples around
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5300 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-01-08 15:28:31 +00:00