Click here to Skip to main content
15,912,329 members
Home / Discussions / C#
   

C#

 
GeneralRe: Events Pin
Corinna John17-Jun-04 1:47
Corinna John17-Jun-04 1:47 
GeneralRe: Events Pin
Heath Stewart17-Jun-04 1:50
protectorHeath Stewart17-Jun-04 1:50 
GeneralRe: Events Pin
bouli17-Jun-04 1:56
bouli17-Jun-04 1:56 
GeneralRe: Events Pin
bouli17-Jun-04 1:48
bouli17-Jun-04 1:48 
GeneralRe: Events Pin
Heath Stewart17-Jun-04 1:52
protectorHeath Stewart17-Jun-04 1:52 
GeneralRe: Events Pin
bouli17-Jun-04 2:08
bouli17-Jun-04 2:08 
GeneralRe: Events Pin
Heath Stewart17-Jun-04 2:15
protectorHeath Stewart17-Jun-04 2:15 
GeneralRe: Events Pin
bouli17-Jun-04 2:34
bouli17-Jun-04 2:34 
ok, I've got it Smile | :)
the delegate was inside the PeerPlayer class.
I have done the following now:

pp.HostFound+=new HostFoundHandler(OnHostFound);

and it works Smile | :)

I'm now working on how to write the calls of the DirectPlay connections in a thread.

I would like to execute the following code in a thread:

<br />
		public bool Enumerate(String hostName)<br />
		{<br />
			m_sessions.RemoveRange(0, m_sessions.Count);<br />
<br />
			Address			hostAddress=new Address();<br />
			<br />
			hostAddress.ServiceProvider=Address.ServiceProviderTcpIp;<br />
            <br />
			if (hostName.Length > 0)<br />
				hostAddress.AddComponent(Address.KeyHostname, hostName);<br />
            <br />
			hostAddress.AddComponent(Address.KeyPort, m_port);<br />
<br />
			ApplicationDescription		appDesc=new ApplicationDescription();<br />
			<br />
			appDesc.GuidApplication=m_appGuid;<br />
<br />
			try<br />
			{<br />
				m_peer.FindHosts(appDesc, hostAddress, m_localAddress, null, 0, 0, 0, FindHostsFlags.Sync);<br />
			}<br />
			catch(Exception ex)<br />
			{<br />
				Debug.WriteLine(ex.Message);<br />
				return false;<br />
			}<br />
<br />
			return true;<br />
		}<br />


There is no spoon.
GeneralRe: Events Pin
Corinna John17-Jun-04 1:39
Corinna John17-Jun-04 1:39 
GeneralRe: Events Pin
bouli17-Jun-04 1:45
bouli17-Jun-04 1:45 
GeneralRe: Events Pin
Corinna John17-Jun-04 1:52
Corinna John17-Jun-04 1:52 
GeneralRe: Events Pin
bouli17-Jun-04 1:56
bouli17-Jun-04 1:56 
GeneralRe: Events Pin
bouli17-Jun-04 2:01
bouli17-Jun-04 2:01 
Generalcheck programatically if IIS is installed Pin
michalJ17-Jun-04 0:13
michalJ17-Jun-04 0:13 
GeneralRe: check programatically if IIS is installed Pin
Heath Stewart17-Jun-04 1:27
protectorHeath Stewart17-Jun-04 1:27 
GeneralRe: check programatically if IIS is installed Pin
michalJ17-Jun-04 4:51
michalJ17-Jun-04 4:51 
GeneralInvert grapics in 2D Pin
Mikke_x16-Jun-04 22:30
Mikke_x16-Jun-04 22:30 
GeneralRe: Invert grapics in 2D Pin
Heath Stewart17-Jun-04 1:23
protectorHeath Stewart17-Jun-04 1:23 
GeneralRe: Invert grapics in 2D Pin
Mikke_x17-Jun-04 2:15
Mikke_x17-Jun-04 2:15 
Generalexport dataset to execl 2000 Pin
Wilson Wu16-Jun-04 21:28
Wilson Wu16-Jun-04 21:28 
GeneralRe: export dataset to execl 2000 Pin
Heath Stewart16-Jun-04 21:35
protectorHeath Stewart16-Jun-04 21:35 
GeneralEquivalent of SetItemData, GetItemData in C# Pin
Md Saleem Navalur16-Jun-04 20:04
Md Saleem Navalur16-Jun-04 20:04 
GeneralRe: Equivalent of SetItemData, GetItemData in C# Pin
Mazdak16-Jun-04 20:47
Mazdak16-Jun-04 20:47 
GeneralRe: Equivalent of SetItemData, GetItemData in C# Pin
Md Saleem Navalur21-Jun-04 2:44
Md Saleem Navalur21-Jun-04 2:44 
GeneralRe: Equivalent of SetItemData, GetItemData in C# Pin
Heath Stewart16-Jun-04 21:40
protectorHeath Stewart16-Jun-04 21:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.