Opennetcf LED.How come this doesn't work??

  • Thread starter Thread starter Timothy Taylor
  • Start date Start date
T

Timothy Taylor

How come this doesn't work? What do i need to pass uint??

Dim uint As UInt32 = Nothing

Dim LED As OpenNETCF.Notification.LED

LED.SetLedStatus(uint, Notification.LED.LedState.On)
 
It has this error on the line after the setledstatus line (end sub, so i
know it's the line before)

"An unhandled exception of type 'System.NullReferenceException' occurred"

I am using a Dell Axim X5 with .NET 2003 CF
 
No, this line is throwing the exception:

LED.SetLedStatus(uint, Notification.LED.LedState.On)

And it should. You explicitly set "uint" to Nothing, which is null. LED
hasn't been created, so it's also null.

Just do this:

Dim LED As New OpenNETCF.Notification.LED
LED.SetLedStatus(0, Notification.LED.LedState.On)

-Chris
 
If i try conert.touint32(0) it says "integer cannot be converted to
system.uint32" and when i do uint.parse("0") it still gives me a
missingmethodexception when it gets to that line. I don't know what to do
about it!

Have you tested this LED thing on a Dell Axim? Maybe it doesn't work with
Axims

Thanks guys,

-Tim
 
Back
Top