Thursday, March 8, 2012

Can I write a dll(or share the same code) that works on both Mobile device and pc?

hi,

Can I write a dll(or share the same code) that works on both Mobile device and pc? Since we are using compact edition, we are hoping we can write some common module with the same code that could works on both mobile device and pc platform. I noticed the reference is the same, System.Data.SqlServerCe.dll 3.0.

Another question is, we already have a module for SQLCE2.0, with .net CF1.0. Now, we will start to use compact edition, should we just update on the 1.0 one, or we have to write a different one based on .net CF2.0? Can I use compact edition in CF1.0 dll?

Thanks.

The code in terms of SQL CE is exactly the same, apart from the connection string. So yes, you can easily share code, you will have to use 2 different solutions to target the different platforms, however. SQL CE/SQL Mobile is only available in Visual Studio 2005.

No comments:

Post a Comment