A beginner's question of DirectPlay
I have just finished my first network game based on DirectPlay,everything works well,but some problem comes when I changed my IDirectPlay8Peer::Connect() and IDirectPlay8Peer::SendTo() from synchronously to asynchronously,they don't return DPNSUCCESS_PENDING but return E_INVALIDARG and sure didn't work any more,if my arguments are invalid why it works when sync?
I havn't used DirectPlay but it has been deprecated. I doubt you want to hear this but in general DirectPlay seems a waste to use. Just use sockets.
Hey dude,don't frustrate me,I have just give up using winsock,I feel that DirectPlay is more powerful and more easy to use.
Why everyone use sock,the dispute of D3D and OpenGL is never end,but I havn't seen any dispute between DirectPlay and WinSock,can anybody tell me.
Why everyone use sock,the dispute of D3D and OpenGL is never end,but I havn't seen any dispute between DirectPlay and WinSock,can anybody tell me.
Well as I said I havn't used DirectPlay so I don't know if it's easier but if you look in this thread you'll find alot of discussion on DirectPlay vs Sockets:
http://www.gamedev.net/community/forums/topic.asp?topic_id=259766
http://www.gamedev.net/community/forums/topic.asp?topic_id=259766
it would help to see some code, but IIRC you must create the peer using a different function for async. either post some code or check your docs under the PLAYER_ID or CreatePeer.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement