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

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)
 
T

Timothy Taylor

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
 
C

Chris Tacke, eMVP

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
 
T

Timothy Taylor

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top