X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7b28757f5e64bac68d9b159240616fc4d9ad66bc..925fcf5f1b38c232b2156b8e85987ef75df6d4e3:/samples/ipc/ddesetup.h diff --git a/samples/ipc/ddesetup.h b/samples/ipc/ddesetup.h index caf383930c..e5886c9ad0 100644 --- a/samples/ipc/ddesetup.h +++ b/samples/ipc/ddesetup.h @@ -9,34 +9,16 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -/* - * Adjust this before compiling, to switch between real DDE and TCP/IP - * implementations. - */ +// You may set this to 0 to prevent DDE from being used even under Windows +//#define wxUSE_DDE_FOR_IPC 0 -// If 1, use real DDE. If 0, use TCP/IP +#include -#ifdef __WXMSW__ -#define wxUSE_DDE_FOR_SAMPLE 1 -#else -#define wxUSE_DDE_FOR_SAMPLE 0 -#endif +// the default service name +#define IPC_SERVICE _T("4242") -#if wxUSE_DDE_FOR_SAMPLE - -#define wxConnection wxDDEConnection -#define wxServer wxDDEServer -#define wxClient wxDDEClient - -#include - -#else - -#define wxConnection wxTCPConnection -#define wxServer wxTCPServer -#define wxClient wxTCPClient - -#include - -#endif +// the IPC topic +#define IPC_TOPIC _T("IPC TEST") +// the name of the item we're being advised about +#define IPC_ADVISE_NAME _T("Item")