Results 1 to 3 of 3

Thread: [RESOLVED] Windows CE 5.0 and SqlCe - Can't PInvoke DLL 'sqlceme30.dll

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2002
    Posts
    352

    Resolved [RESOLVED] Windows CE 5.0 and SqlCe - Can't PInvoke DLL 'sqlceme30.dll

    So far my development testing of my mobile app has been strictly with Emulator Images in VS2005. I can add/edit data to a SqlCe Db on my desktop, but cannot get SqlCe working on my mobile device.

    My mobile app loads on my handheld, but when I try to access the SqlCe db I get the following error.

    Code:
    Can't PInvoke DLL 'sqlceme30.dll.
    I thought CF 2.0 supported SqlCe on Windows CE 5.0. What am I doing wrong?
    Last edited by easymoney; Apr 20th, 2007 at 02:34 AM.

  2. #2
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: Windows CE 5.0 and SqlCe - Can't PInvoke DLL 'sqlceme30.dll

    Hi,
    sounds like you haven't installed SqlCe on your device - you either need to install the cab, or run VS2005, and run your code on the device, and SqlCe will install

    Pete
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2002
    Posts
    352

    Re: Windows CE 5.0 and SqlCe - Can't PInvoke DLL 'sqlceme30.dll

    Okay, finally figured out the issue.

    I had Microsoft SQL Server listed under Remove Programs on my Mobile device. It installed sqlce30 in the windows directory, but not the correct version. So uninstalled it from the Control Panel.

    Then I installed the following software, fixing the PInvoke error. I can now create SqlCe databases complete with tables and data.

    Copied the following file to my Mobile Device and installed:

    sqlce30.wce5.armv4i.CAB

    from

    C:\Program Files\Microsoft SQL Server Compact Edition\v3.1\SDK\bin\wce500\armv4i

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width