compact-framework

Thread-safe invoke on NET CF

≡放荡痞女 提交于 2019-12-02 05:56:27
I have a background thread running that fires events, but how can I ensure a thread safe invocation of these events using NET CF? I would use ISyncronizeInvoke on the NET platform, but I can't find this on NET CF. I'm sure there are an equivalent available.... or? The Compact Framework does have Control.Invoke / BeginInvoke , although I believe it's limited to the EventHandler delegate (with any other delegate throwing an exception at execution time). Assuming your actual instance of ISynchronizeInvoke is going to be a UI control, I'd just pass the reference as Control to whatever needs it. If

How to create a Smart Device installer with CF 3.5 and SQL Server CE included?

与世无争的帅哥 提交于 2019-12-02 05:40:43
after having my first look into the Visual Studio (2008) installation/setup project template for Smart Devices and wondering how unintuitive this is, and after searching the net for about an hour and paging through my CF books, I still have not been able to find out how I can create a setup package (.cab file, Setup.exe, whatever) that includes my Compact Framework 3.5 application as well as CF 3.5 itself and SQL Server CE, so that the prerequisites get installed if necessary with my application automatically. Can anybody shed any light on this, or can suggest any third-party installer tool,

Conversion of C/C++ Struct To C#.Net CF WinCE

本秂侑毒 提交于 2019-12-02 05:16:10
Hi I am trying to convert the C/C++ Strcut to C# C/C++ Struct looks like: typedef struct _NDISUIO_QUERY_OID { NDIS_OID Oid; PTCHAR ptcDeviceName; UCHAR Data[sizeof(ULONG)]; } NDISUIO_QUERY_OID, *PNDISUIO_QUERY_OID; My C# Struct is: [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] public struct _NDISUIO_QUERY_OID { public uint Oid; [MarshalAs(UnmanagedType.LPWStr)] public string ptcDeviceName; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 8*sizeof(uint))] public string Data; }; I was bit doubtful about the converted structure, can anyone clarify me about this conversion?? If

Start Bar Shows Up Over Maximized Form (Pocket PC 2003)

南笙酒味 提交于 2019-12-02 05:00:17
Environment Windows XP SP3 x32 Visual Studio 2005 Standard Windows Mobile/Pocket PC 2003 .NET Compact Framework 1.0 SP3 and .NET Framework 1.1 Honeywell Dolphin 9500 Handheld Barcode Scanner Goal I have a three form application and an external class (Program.cs) that has the application entry point, Main() . The main form loads first and then, from within MainForm_Load(...) , instantiates/shows a new form kind of like a splash screen. I want all three forms to be maximized. All three forms have the following properties set: this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this

OpenFileDialog does not browse the folders under .NET CF

巧了我就是萌 提交于 2019-12-02 04:38:33
I have an WinMo app and I would like to open a file from the storage card. The file is NOT in the root but within the folder structure. I thought OpenFileDialog would do the trick just as it does under regular .NET. But it does not offer me to navigate over the folders. I looks really lame. Or am I just outstandingly stupid? The OFD in the CF, to put it bluntly, sucks. It has the ability to only browse a few select folders, and as a developer you have no control over what they are. To browse all folders you need to either roll your own dialog or get a third-party one . 来源: https:/

Marshalling C Struct with array of structures in it

吃可爱长大的小学妹 提交于 2019-12-02 03:19:57
问题 I referred the similar questions in this forum but didn't get the solution for my problem. I have been struggling with marshaling problem for a while. I have a structure that contains an array of another structure, The platform is Win CE . I am using Visual Studio 2008 and .NET CF 3.5. The code: C Structures: struct dot11Rate { unsigned int rate; unsigned char mode; }; typedef struct my_supported_rates { unsigned short n_rates; struct dot11Rate srates[36]; unsigned char isSet; unsigned char

Looking for OAuth 1.0a sample code for .NET compact framework

有些话、适合烂在心里 提交于 2019-12-02 02:49:37
问题 I'm looking for an OAuth 1.0a sample for .NET compact framework. Preferably .netcf 3.5 but 2.0 is fine too. I'm looking to call oauth for the foursquare.com api (http://groups.google.com/group/foursquare-api/web/oauth) 回答1: Here's someone's detailed blog post on how to write an OAuth 1.0a consumer on NetCF. I've also opened a DotNetOpenAuth branch targeted at NetCF, although it's not ready yet. 回答2: Check out DotNetOpenAuth. It's an open-source (Ms-PL) .NET library for OpenID and OAuth.

Looking for OAuth 1.0a sample code for .NET compact framework

…衆ロ難τιáo~ 提交于 2019-12-02 01:28:18
I'm looking for an OAuth 1.0a sample for .NET compact framework. Preferably .netcf 3.5 but 2.0 is fine too. I'm looking to call oauth for the foursquare.com api ( http://groups.google.com/group/foursquare-api/web/oauth ) Here's someone's detailed blog post on how to write an OAuth 1.0a consumer on NetCF . I've also opened a DotNetOpenAuth branch targeted at NetCF , although it's not ready yet. Check out DotNetOpenAuth . It's an open-source (Ms-PL) .NET library for OpenID and OAuth. Samples included. Not sure if it supports compact framework, though. Another library that provides oauth consumer

.net cf - launch explorer programmatically

夙愿已清 提交于 2019-12-02 01:08:36
I am trying to launch explorer programmatically from my .Net CF Window application. But its throwing win32 exception. I have used same kind of code in desktop .Net version, and it always worked. (I am using Windows CE 5 and .Net CF 3.5 ) Following code throws Win32 Exception, Process.Start("\\", null); Unfortunately, I am using the code like this :-( try { Process.Start("\\", null); } catch { } Maybe you should give it a program name to start? "\" is not an application. Something like this is probably more likely to yield success: Process.Start("\\windows\\explorer.exe", null); In order to

Getting Mouse Events on a ComboBox

梦想的初衷 提交于 2019-12-02 00:22:00
问题 I am working on WINCE platform, developing windows form app in C#, I need to implement a mouse click event for DROP DOWN BOX , but compact framework doesn't have a support for mouse click events. Can anyone suggest me any alternative way to implement the MOUSE CLICK EVENT for combobox (DROP DOWN BOX).? PS: I am using GOT FOCUS EVENT on drop down box but it's not flexible, I need to run the code when the DROP DOWN BOX is clicked or when it is DROPPED DOWN. Any suggestions or code snippets will