if ( !hszServer )
{
- return (wxConnectionBase*) NULL;
+ return NULL;
}
if ( !hszTopic )
{
DDEFreeString(hszServer);
- return (wxConnectionBase*) NULL;
+ return NULL;
}
}
}
- return (wxConnectionBase*) NULL;
+ return NULL;
}
wxConnectionBase *wxDDEClient::OnMakeConnection()
_T("wxDDEServer::Execute() supports only text data") );
wxMemoryBuffer buffer;
- LPBYTE realData wxDUMMY_INITIALIZE(NULL);
- size_t realSize wxDUMMY_INITIALIZE(0);
+ LPBYTE realData = NULL;
+ size_t realSize = 0;
wxMBConv *conv = NULL;
// Windows only supports either ANSI or UTF-16 format depending on the
DWORD result;
bool ok = DdeClientTransaction(realData,
- realSize,
- GetHConv(),
- NULL,
- // MSDN: if the transaction specified by
- // the wType parameter does not pass data
- // or is XTYP_EXECUTE, wFmt should be zero.
- 0,
- XTYP_EXECUTE,
- DDE_TIMEOUT,
- &result) != 0;
+ realSize*sizeof(wxChar),
+ GetHConv(),
+ NULL,
+ // MSDN: if the transaction specified by
+ // the wType parameter does not pass data
+ // or is XTYP_EXECUTE, wFmt should be zero.
+ 0,
+ XTYP_EXECUTE,
+ DDE_TIMEOUT,
+ &result) != 0;
if ( !ok )
{