Advertisement

DPNERR_ALREADYINITIALIZED when trying do connect to directplay server

Started by December 22, 2003 05:34 AM
3 comments, last by kobingo 21 years, 1 month ago
(I''ve also posted this in the DirectX forum, didn''t know which one was best). Hey I have a directplay server/client application. It seems that my server is running fine (I tested connected to it with the SimpleClient program that comes along with DirectX SDK). But, when I''m trying to connect to the server with my own client i get the error DPNERR_ALREADYINITIALIZED. When I try to connect to a server that isn''t there I get DPNERR_HOSTNOTFOUND (or something like that). In the docs it describes that if I get a DPNERR_ALREADYINITIALIZED the object is already initialized, duh! How can I work around this error? Thanks in advance!
directx forum is useless for anything but d3d!
Advertisement
Maybe you mean DPNERR_ALREADYCONNECTED which means you are trying to connect more than once. If the Connect() call isn''t in sync (i.e. DPNCONNECT_SYNC flag is set), the call is posted to DirectPlay and you''ll get the actual result through the DPN_MSGID_CONNECT_COMPLETE message later on (usually, 500ms to 1500ms later). With an async connection call, you just have to be patient... |8-}

-cb
nope, i mean DPNERR_ALREADYINITIALIZED...
Maybe some code around the part that doesn''t work?

This topic is closed to new replies.

Advertisement