bool MyApp::OnInit()
{
// service name (DDE classes) or port number (TCP/IP based classes)
- wxString service = "4242";
+ wxString service = IPC_SERVICE;
// ignored under DDE, host name in TCP/IP based classes
wxString hostName = "localhost";
// suppress the log messages from MakeConnection()
{
wxLogNull nolog;
- the_connection = (MyConnection *)my_client->MakeConnection(hostName, service, "IPC TEST");
+ the_connection = (MyConnection *)
+ my_client->MakeConnection(hostName, service, IPC_TOPIC);
while ( !the_connection )
{
}
}
- if (!the_connection->StartAdvise("Item"))
+ if (!the_connection->StartAdvise(IPC_ADVISE_NAME))
wxMessageBox("StartAdvise failed", "Client Demo Error");
// Create the main frame window