Pocket PC FAQ Forums Forum Index Pocket PC FAQ Forums
The place to discuss Windows Mobile, Pocket PCs, Smartphones, Handheld PCs, Windows CE and More!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

I wanna install SQL Compact on wince 6

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Pocket PC FAQ Forums Forum Index -> Windows CE Questions/Comments
View previous topic :: View next topic  
Author Message
keenkey
Pocketeer


Joined: 04 Jul 2010
Posts: 1

PostPosted: Sun Jul 04, 2010 7:33 am    Post subject: I wanna install SQL Compact on wince 6 Reply with quote

I wanna install SQL Compact on my device which is running wince 6.

First time after installation SQL Compact .cab files downloaded from Microsoft website "http://www.microsoft.com/sqlserver/2005/en/us/compact.aspx" applications using this instance of SQL running correctly.
My problem starts after restarting my device.it seems that after restarting my application can not load SQL Compact DLLs printing this error message:
"Can't find P/Invoke DLL sqlceme30.dll"

Code:
 private void Form1_Load(object sender, EventArgs e)
        {
            string connectionString = "Data Source=file2.sdf";


            //in this line of code I get error
            [u]using (SqlCeEngine engine = new SqlCeEngine(connectionString))[/u]
            {
                engine.CreateDatabase();
            }

            using (SqlCeConnection connection = new SqlCeConnection(connectionString))
            {
                connection.Open();
                // preform queries just like "regular" SQL Server
            }

        }

In addition I have compared registry contents before and after restating the device and I found that there are many differences between them, so how can I import SQL Compact to NK.nb0 file of wince 6.

Best Regards,
[/url]
Back to top
View user's profile Send private message
ChrisDeHerrera
Site Admin


Joined: 01 Feb 2000
Posts: 7017
Location: Los Angeles, CA, USA

PostPosted: Sun Jul 04, 2010 7:50 am    Post subject: Reply with quote

Hi,
Based on my understanding of Window CE 6.0, all prior executeables are not compatible.

This is because Windows CE 6.0 uses a different memory architecture.
_________________
Chris De Herrera
Microsoft MVP - Mobile Devices & Tablet PC
http://www.pocketpcfaq.com- The most complete set of FAQs on Windows CE
http://www.tabletpctalk.com - Get the latest Tablet PC News
http://www.pocketpctalk.com - Get the latest Pocket PC News
http://www.mobilitytalk.com - Quickly view all the Pocket PC & Tablet PC News on one page
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Pocket PC FAQ Forums Forum Index -> Windows CE Questions/Comments All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Copyright 2001-2010, Chris De Herrera, All Rights Reserved

Powered by phpBB © 2001, 2005 phpBB Group