What to select in catalog in platform builder to include SQL CE in image for windows CE.
I have selected Application and Services Development->Sql Compact but it is still giving following error.
File or assembly name "system.data.sqlserverce version=3.5.0.0, culture..." or one of its dependencies, was not found
While digging further found While digging further found http://geekswithblogs.net/BruceEitman/archive/2009/05/15/platform-builder--problems-with-.net-cf-3.5-and-windows.开发者_Go百科aspx
Now the question is how to add support for SPI_GETPLATFORMNAME in your platform.
Regarding your second question:
You need to P/Invoke SystemParameterInfo
from Coredll.dll. For examples on how to do this or maybe even an implementation, you can check:
- OpennetCF SDF 1.4(Scroll down) with its full source code
- Search PInvoke.net
Be aware that the product name is up to the OEM to fill in and not all OEMs do that.
Regarding the SQLCe - I am not certain that it is included with PB. You might need to install the CAB file seperately, but, again, I am not sure of this.
精彩评论