tobiasschulz / csharp-sqlite

Automatically exported from code.google.com/p/csharp-sqlite
Other
0 stars 0 forks source link

SQLITE_OS_WINCE compiler directive not working #109

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download current (2011.04.15. 14:21) latest source using TortoiseHg
2. Open Community.CsharpSqlite.SQLiteClient in VisualStudio
3. try to compile for WindowsCE (using SQLITE_OS_WINCE compiler directive)

What is the expected output? What do you see instead?
It should compile, but it doesn't.

What version of the product are you using? On what operating system?
Windows7 32bit, current (2011.04.15. 14:21) latest version from TortoiseHg

Please provide any additional information below.

Original issue reported on code.google.com by biliktam...@gmail.com on 15 Apr 2011 at 12:24

GoogleCodeExporter commented 9 years ago
WindowsCE is not supported.  See CompilerOptions in the Wiki

Try the SQLITE_SILVERLIGHT and or WINDOWS_PHONE options; they may work for your 
environment.

Original comment by noah.hart@gmail.com on 15 Apr 2011 at 1:21

GoogleCodeExporter commented 9 years ago
I would like to support older, industrial/rugged devices which mainly use OS up 
to WindowsCE 6 or Windows Mobile 6.5.
These devices support compact Framework 2 and 3.5 and you cannot install .NET 
4, so that's why I would like to compile to Compact Framework 3.5

Original comment by biliktam...@gmail.com on 15 Apr 2011 at 1:48

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
At the compiler options page in the Wiki, there is nothing mentioned about the 
SQLITE_OS_WINCE compiler directive, so as it's not in the "COMPILER OPTIONS NOT 
SUPPORTED" group, I thought it is supported.

Using WINDOWS_PHONE compiler directive is not working, because it's still 
referencing the desktop framework (not the Compact Framework), so deploying to 
a WM5 device will copy a lot of  desktop framework files and it's not working.

Does this mean that devices with oldes Windows OS than Windows Phone 7 are not 
supported?

Original comment by biliktam...@gmail.com on 19 Apr 2011 at 12:32

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Trying to wrap it up this week.

Original comment by noah.hart@gmail.com on 16 May 2011 at 8:35

GoogleCodeExporter commented 9 years ago
Eagerly waiting for it... :)

Original comment by biliktam...@gmail.com on 20 May 2011 at 12:59

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
No, I don't know anything about a javascript ports.
I'm interested only in C# .NET.

Bilik Tam�s

Original comment by biliktam...@gmail.com on 13 Jun 2011 at 9:02

GoogleCodeExporter commented 9 years ago
I would love to see this functionality. I am currently trying to use the 
official C# wrapper, but I have a multiple target project. Before adding SQLite 
everything was easy. I made WinCE projects for the files to be shared from PC 
to WinCE. However, I am now having to duplicate my projects so I can compile 
one for PC, followed further by 32Bit and 64Bit differences. I could greatly 
use this if I could keep my simple project setup. Is this still a priority to 
get into the code?

Thanks!
Jarvis

Original comment by jar...@vortexrevolutions.com on 27 Aug 2011 at 7:32

GoogleCodeExporter commented 9 years ago
Sorry Jarvis, I think it fell through the cracks

If you tell me where you want the compiler directive added, I can put 
them in for you

Noah

Original comment by noah.hart@gmail.com on 27 Aug 2011 at 7:57

GoogleCodeExporter commented 9 years ago
Noah,

Thanks for the practically immediate response. I don't know where the compiler 
directive would need to be added. My assumption is you may already be using C# 
classes that aren't available on the Compact Framework subset. Have you tried 
compiling your DLL for WindowsCE as a target?

I haven't started using your project yet as I was unaware of it till a few 
minutes ago when I posted. Currently I'm in project configuration hell and saw 
a light in your project. I don't even know what code would be used to use your 
DLL, but if it would allow me the simplistic project files that I have now, 
then I'm down.

I'm not sure how Microsoft limits the classes appropriately, but they do. 
Certain functions in classes don't work in the compact framework, but they do 
in the full. So maybe there are attributes to specify if it's compatible with 
the compact framework or something.

My only other concern would be how long this project may last... I know it's 
open source, but currently I wouldn't have the time to maintain this were you 
to stop work on it.

Thanks again for such a rapid response,
Jarvis

Original comment by jar...@vortexrevolutions.com on 27 Aug 2011 at 8:07

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Above it looked like you asked someone if they could use either Silverlight or 
Windows Phone and it doesn't appear that it worked for them the same reasons it 
wouldn't work for me. I'm using Windows CE/Mobile 6.5 or Less.

It appears also back in April you had someone contact you on how all this could 
happen.

I'm VERY happy to hear you're in talks with them to make this more official and 
maintained. If there's anything I CAN do to help please let me know. I just 
feel a more native solution than a wrapper would be preferable and even 
possibly faster.

If you need me to give it a go or something due to not having the SDK's for 
Compact Framework let me know. I've finally got something working with this 
project restructuring, but I'm going to have to compile 2 versions of many of 
my classes, and then on top of that I will be required to supply a 64Bit and 
32Bit version of each of the PC classes. So if this will work, then I'd be 
happy to do a bit of testing for you.

Thanks!

Original comment by jar...@vortexrevolutions.com on 27 Aug 2011 at 9:23

GoogleCodeExporter commented 9 years ago
Well, if you could send me a small SQLITE_OS_WINCE test project that 
would help,

Noah

Original comment by noah.hart@gmail.com on 27 Aug 2011 at 11:02

GoogleCodeExporter commented 9 years ago
Noah,

Do you have Visual Studio 2008? I'm going to try to build you a sample project.

Thanks,
Jarvis

Original comment by jar...@vortexrevolutions.com on 2 Sep 2011 at 2:25

GoogleCodeExporter commented 9 years ago
Yes, VS2008 is just fine

Noah

Original comment by noah.hart@gmail.com on 2 Sep 2011 at 3:32

GoogleCodeExporter commented 9 years ago
Closed due to lack of interest

Original comment by noah.hart@gmail.com on 29 Oct 2012 at 7:40