Jump to content
  • Advertisement


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


Directplay 8 , do i need the guid?

This topic is 5453 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Im trying to learn direct play 8. Basically what i want to do is make a basic connect and host program. I don''t want any lobbies etc. From what ive seen guid is only used for lobbies, but when i remove the guid from the host sdk example it fails to host. Why does it fail if guid is only used for lobby
    HRESULT                 hr = S_OK;

    // Now set up the Application Description

    ZeroMemory(&dpAppDesc, sizeof(DPN_APPLICATION_DESC));
    dpAppDesc.dwSize = sizeof(DPN_APPLICATION_DESC);
//    dpAppDesc.guidApplication = g_guidApp;

    dpAppDesc.dwFlags = DPNSESSION_NODPNSVR;

    // We are now ready to host the app

    if( FAILED( hr = g_pDP->Host( &dpAppDesc,            // AppDesc

                                  &g_pDeviceAddress, 1,   // Device Address

                                  NULL, NULL,             // Reserved

                                  NULL,                   // Player Context

                                  0 ) ) )                 // dwFlags

        OutputError( TEXT("Failed to host a new session"), hr );
        return hr;

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!