DirectPlay8 Groups in VB
Hi
Could somebody give me an example of how to create a directplay8 group in vb.
What I cant quite understand is does directplay give me the GroupID or can I supply it.
What I want to do is to have a number of directplay groups related to map locations. So ideally I can create a group referenced to that location.
Thanks
Private Sub CreateGroups Dim Info As DPN_GROUP_INFO With Info .lInfoFlags = DPNINFO_NAME .Name = "Groupname" End With intCurrentGroup = 0 ''//Create group 1 Call objDPServer.CreateGroup(Info, DPNOP_SYNC)End SubPrivate Sub DirectPlay8Event_CreateGroup(ByVal lGroupID As Long, ByVal lOwnerID As Long, fRejectMsg As Boolean) ''//If creating the race groups RaceGroups(intCurrentGroup) = lGroupID ''//Set the groupid to the last created group (done synced)End Sub
done
www.persistentrealities.com for Inline ASM for VB, VB Fibre, and other nice code samples in C++, PHP, ASP, etc.<br/>Play Yet Another Laser Game!<br/>
Ah well since you put it like that..
Thanks
I dont know about other people, but I sometimes struggle with the VB samples that Microsoft uses. Its like they always treat VB as an afterthought.
Mark-c
Thanks
I dont know about other people, but I sometimes struggle with the VB samples that Microsoft uses. Its like they always treat VB as an afterthought.
Mark-c
It certainly would be a lot easier if the CreateGroup call would return the groupid and not the Async handle...
www.persistentrealities.com for Inline ASM for VB, VB Fibre, and other nice code samples in C++, PHP, ASP, etc.<br/>Play Yet Another Laser Game!<br/>
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement