Archived

This topic is now archived and is closed to further replies.

DirectPlay8 Groups in VB

Recommended Posts

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

Share on other sites
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

Share on other sites
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

Share on other sites
It certainly would be a lot easier if the CreateGroup call would return the groupid and not the Async handle...

• Forum Statistics

• Total Topics
628359
• Total Posts
2982259

• 10
• 9
• 13
• 24
• 11