IDirectPlay8Peer::EnumPlayersAndGroups Method
in my application i want to see how much players are in the session (i''m using directplay) and i tried the EnumPlayersAndGroups Method but something out of the human knowledge doesn''t work...the method returns always a null valor.
can anyone explain me how to use properly this method or give me an alternative?
thnx
You have to call the function twice: once to get an adjusted length (you got error code DPNERR_BUFFERTOOSMALL), and the next one to retrieve the list itself using the adjusted buffer.
-cb
-cb
thnx for your advices...i resolved my problem using DPN_MSGID_CREATE_PLAYER in my MessageHandler HRESULT and updating a counter when a user enters or leaves (in this case the message is _DESTROY_)...is a rudimental method but works...and if i would like to know the ip of the connected player?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement