Click here to Skip to main content
15,881,204 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# serialized Pin
Christian Graus28-May-05 11:41
protectorChristian Graus28-May-05 11:41 
GeneralRe: C# serialized Pin
nume28-May-05 19:17
nume28-May-05 19:17 
GeneralRe: C# serialized Pin
Christian Graus28-May-05 23:57
protectorChristian Graus28-May-05 23:57 
GeneralRunning C# application from memory only Pin
Anonymous27-May-05 18:23
Anonymous27-May-05 18:23 
GeneralRe: Running C# application from memory only Pin
Niklas Ulvinge27-May-05 22:17
Niklas Ulvinge27-May-05 22:17 
QuestionHow can I get properties of a class in runtime? Pin
oohungoo27-May-05 18:04
oohungoo27-May-05 18:04 
AnswerRe: How can I get properties of a class in runtime? Pin
Raja Sekhar Amirapu27-May-05 19:03
Raja Sekhar Amirapu27-May-05 19:03 
GeneralCatching exceptions not thrown from Sysem.Exception Pin
Esmo200027-May-05 17:56
Esmo200027-May-05 17:56 
Hey All...

So I was working through a directX tutorial and i came across this:

<br />
// Try to get the current state<br />
				try <br />
				{<br />
					state = this.keyboard.GetCurrentKeyboardState();<br />
<br />
					// if fetching the state is successful -> exit loop<br />
					break;<br />
				}<br />
				catch (Microsoft.DirectX.DirectInput.InputException)<br />
				{          <br />
					// let the application handle Windows messages<br />
					Application.DoEvents();<br />
<br />
					// Try to get reacquire the keyboard <br />
					// and don't care about exceptions<br />
					try<br />
					{ <br />
						keyboard.Acquire(); <br />
					}<br />
					catch (Microsoft.DirectX.DirectInput.InputLostException)<br />
					{ <br />
						continue; <br />
					}<br />
					catch(Microsoft.DirectX.DirectInput.OtherApplicationHasPriorityException)<br />
					{ <br />
						continue; <br />
					}<br />
				}<br />
}<br />
<br />
<br />


However, the compiler says that all exceptions have to be derived from System.Exception. What can I do?

Thanks a lot,
Jim

Did I post well? Rate it! Did I post badly? Rate that too!
GeneralRe: Catching exceptions not thrown from Sysem.Exception Pin
S. Senthil Kumar27-May-05 20:49
S. Senthil Kumar27-May-05 20:49 
GeneralSystem Events Pin
WiseBuddha27-May-05 14:09
WiseBuddha27-May-05 14:09 
GeneralRe: System Events Pin
S. Senthil Kumar27-May-05 20:53
S. Senthil Kumar27-May-05 20:53 
Generalcreate transparent form with image as background but... Pin
Sasuko27-May-05 12:54
Sasuko27-May-05 12:54 
GeneralDisconnection detection in Tcpclient Pin
Member 143915727-May-05 12:47
Member 143915727-May-05 12:47 
GeneralRe: Disconnection detection in Tcpclient Pin
S. Senthil Kumar27-May-05 21:03
S. Senthil Kumar27-May-05 21:03 
QuestionHow can I get the identity of a application pool? Pin
Johny Ng27-May-05 12:17
Johny Ng27-May-05 12:17 
GeneralShort filename Pin
bouli27-May-05 10:21
bouli27-May-05 10:21 
GeneralRe: Short filename Pin
John Fisher27-May-05 10:53
John Fisher27-May-05 10:53 
GeneralRe: Short filename Pin
bouli27-May-05 10:55
bouli27-May-05 10:55 
GeneralRe: Short filename Pin
John Fisher27-May-05 11:48
John Fisher27-May-05 11:48 
GeneralRe: Short filename Pin
bouli27-May-05 11:51
bouli27-May-05 11:51 
GeneralRe: Short filename Pin
John Fisher27-May-05 12:21
John Fisher27-May-05 12:21 
GeneralRe: Short filename Pin
bouli27-May-05 12:40
bouli27-May-05 12:40 
GeneralRe: Short filename Pin
John Fisher27-May-05 17:18
John Fisher27-May-05 17:18 
GeneralRe: Short filename Pin
Niklas Ulvinge27-May-05 11:18
Niklas Ulvinge27-May-05 11:18 
GeneralSimple Data BInding Problem Pin
goldoche27-May-05 10:10
goldoche27-May-05 10:10 

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.