Notification.Led usage with coredll.dll not found issue

Last post 05-08-2008 10:37 by cldela0. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 05-08-2008 7:48

    Notification.Led usage with coredll.dll not found issue

    I am using VS2005 Express to develop a page that when loaded on a Symbol MC5040 w/ PocketPC 2003 OS will make the pda vibrate.  Below is the code I am using (copied form various website examples).

    Dim vib As New OpenNETCF.WindowsCE.Notification.Led

    '---start vibration---

    vib.SetLedStatus(2, OpenNETCF.WindowsCE.Notification.Led.LedState.On)

    System.Threading.Thread.Sleep(500)

    '---stop vibration---

    vib.SetLedStatus(1, OpenNETCF.WindowsCE.Notification.Led.LedState.Off)

     

     

    When I try to view the page on the Symbol pda I get the following error:

    Unable to load DLL 'coredll.dll': the specified module could not be found.

     How do I resolve this problem?  I have had very little success finding/understanding any answers on the web.  I even tried using the SmartDevice option via: OpenNETCF.WindowsMobile.Vibrate.Play().  That just gave me a aygshell error.  Thanks.

     

  • 05-08-2008 8:42 In reply to

    • ctacke
    • OpenNETCF Staff
    • Top 10 Contributor
    • Joined on 07-27-2007
    • Indiana
    • Posts 1,890

    Re: Notification.Led usage with coredll.dll not found issue

    That's not going to work.  Web pages are run on the server, not the client machine, so your web server is trying to load up coredll.dll, which doesn't exist.  If it did, it would simply turn on the notification "vibrator" on the web server anyway.  The only way to make this happen down at the client device is to create an Active X control for the device in C++ that your page can create and call in client-side script.

  • 05-08-2008 10:15 In reply to

    Re: Notification.Led usage with coredll.dll not found issue

    Thank you for clearing that up. I am new to all of this and didn't realize that was the case.  Do you by any chance know where I could find an example of what you are suggesting.  I am teaching myself how to write web pages and rely on examples to understand the code.  Thanks again.
  • 05-08-2008 10:34 In reply to

    • ctacke
    • OpenNETCF Staff
    • Top 10 Contributor
    • Joined on 07-27-2007
    • Indiana
    • Posts 1,890

    Re: Notification.Led usage with coredll.dll not found issue

    I'm not aware of any samples for this offhand.  Creating a web-capable COM object requires C++, so it's not something you're going to do in VB, and even in C++ it's not a beginner task.  COM is confusing even for experienced C++ developers. 

    Even if you get it developed, you also have to get it deployed to the target device - it's not something that will just automatically push down, so you'll have to figure out some deployment mechanism for it.

    Unless this feature is absolutely critical you might consider dropping it from your requirements.

  • 05-08-2008 10:37 In reply to

    Re: Notification.Led usage with coredll.dll not found issue

    I was afraid of that.  Thanks for the help.

Page 1 of 1 (5 items)