J
JariTapio
Hei!
I explored DirectX 8.1 SDK and found TUT09_ClientServer it includes the
following code as a part of the tutorial...
//----
HRESULT WINAPI DirectPlayMessageHandler(PVOID pvUserContext, DWORD
dwMessageId, PVOID pMsgBuffer)
{
HRESULT hr = S_OK;
switch (dwMessageId)
{
case DPN_MSGID_RECEIVE:
{
PDPNMSG_RECEIVE pMsg;
pMsg = (PDPNMSG_RECEIVE) pMsgBuffer;
printf("\nReceived Message: %S\n", (WCHAR*)pMsg->pReceiveData);
break;
}
}
return hr;
}
//----
And, now the actual question : How do i change the pMsg->pReceiveData to
point to my pointer " int *g_myData " and load the data to my pointer..
Well, thats about it, not that bad..
Thank you greatly for your helping tips.
Yours : JariTapio / Helsinki / 06 July 2005
I explored DirectX 8.1 SDK and found TUT09_ClientServer it includes the
following code as a part of the tutorial...
//----
HRESULT WINAPI DirectPlayMessageHandler(PVOID pvUserContext, DWORD
dwMessageId, PVOID pMsgBuffer)
{
HRESULT hr = S_OK;
switch (dwMessageId)
{
case DPN_MSGID_RECEIVE:
{
PDPNMSG_RECEIVE pMsg;
pMsg = (PDPNMSG_RECEIVE) pMsgBuffer;
printf("\nReceived Message: %S\n", (WCHAR*)pMsg->pReceiveData);
break;
}
}
return hr;
}
//----
And, now the actual question : How do i change the pMsg->pReceiveData to
point to my pointer " int *g_myData " and load the data to my pointer..
Well, thats about it, not that bad..
Thank you greatly for your helping tips.
Yours : JariTapio / Helsinki / 06 July 2005