DirectPlay and VB 
Author Message
 DirectPlay and VB

I want to know how to use VB to Automatic input IP, I don't like input
Server IP every time, because the server's IP is Fixed

Thanks!



Tue, 07 Dec 2004 20:09:33 GMT  
 DirectPlay and VB
See your previous post for answer...

--
Eric DeBrosse
http://www.mvps.org/vbdx/
Microsoft Visual Basic DirectX MVP

The opinions expressed in this message are my own personal views and
do not reflect the official views of Microsoft Corporation. The MVP program
does not constitute employment or contractual obligation with Microsoft.


Quote:
> I want to know how to use VB to Automatic input IP, I don't like input
> Server IP every time, because the server's IP is Fixed

> Thanks!



Wed, 08 Dec 2004 10:10:58 GMT  
 DirectPlay and VB
Sorry, I tried to add the line, it still show out the "Enter the remote
machine address" Box !

For Example: ...... at Microsoft Simple Peer sample

where I add it to the cmdJoin sub .....

HostAddr.AddComponentString "hostname", "192.168.100.1"
DeviceAddr.AddComponentString "hostname", "192.168.100.1"
moDPA.AddComponentString "hostname", "192.168.100.1"

which one address object ? .... HostAddr or DeviceAddr or moDPA ??

Jacky

Public Sub cmdJoin_Click()
    Dim HostAddr As DirectPlay8Address
    Dim DeviceAddr As DirectPlay8Address

    cmdJoin.Visible = True
    cmdCreate.Visible = True
    SaveSetting "VBDirectPlay", "Defaults", "UserName", txtUserName.Text
    Dim dpApp As DPN_APPLICATION_DESC
    'You must select a game before you try to join one
    If lstGames.ListIndex < 0 Then
        Call cmdRefresh_Click
'        MsgBox "You must first select a game from the list to join.",
vbOKOnly Or vbInformation, "Select game."
        Exit Sub
    End If

    'Lets join the game
    Dim pInfo As DPN_PLAYER_INFO
    'Set up my peer info
    pInfo.Name = sUser
    pInfo.lInfoFlags = DPNINFO_NAME
    If Not (moDPP Is Nothing) Then
        moDPP.SetPeerInfo pInfo, DPNOP_SYNC
    ElseIf Not (moDPC Is Nothing) Then
        moDPC.SetClientInfo pInfo, DPNOP_SYNC
    End If
    mfDoneEnum = True



Fri, 10 Dec 2004 23:53:04 GMT  
 DirectPlay and VB
I did it

HostAddr.AddComponentString "hostname", "192.168.100.1"

Quote:
>-----Original Message-----
>Sorry, I tried to add the line, it still show out

the "Enter the remote
Quote:
>machine address" Box !

>For Example: ...... at Microsoft Simple Peer sample

>where I add it to the cmdJoin sub .....

>HostAddr.AddComponentString "hostname", "192.168.100.1"
>DeviceAddr.AddComponentString "hostname", "192.168.100.1"
>moDPA.AddComponentString "hostname", "192.168.100.1"

>which one address object ? .... HostAddr or DeviceAddr or
moDPA ??

>Jacky



Sun, 19 Dec 2004 13:48:08 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. DirectPlay WITH VB ?!!!!

2. Does anyone know anything about DirectPLay in VB?

3. DirectPlay and VB

4. DPVBLINK: DirectPlay for Visual Basic (VB)

5. DirectPlay lobby in VB.Net

6. DirectPlay + VB

7. VB Directplay/lobby

8. Looking for control/library for DirectPlay /Input/Draw

9. DirectX-DirectPlay Problems-

10. Any DirectPlay books/examples?

11. Getting IP address with DirectPlay

12. DirectPlay 5.0a

 

 
Powered by phpBB® Forum Software