compact-framework

better way to communicate between ad hoc wifi windows mobile devices

假如想象 提交于 2019-12-11 01:40:26
问题 We are developing wireless ad hoc communication applications on windows mobile 6 devices using 802.11 in ad hoc mode. We are using HP iPAQ 910 devices and OpenNETCF smart device framework 2.3 for development. As a design constraint, each device is represented as an SSID. If two devices want to communicate with each other, initiator switches to other device's SSID and broadcasts UDP messages. However this switching takes 4-5 seconds to complete and spending this much time might be undesirable

Delete ARP entry on Windows CE 6.0 CF.NET 2.0

烂漫一生 提交于 2019-12-11 01:36:12
问题 the task I had to solve was to send an ARP request to a target device. So I started to P/Invoke SendARP in C# - CompactFramework.NET 2.0 for Windows CE 6.0. [DllImport("iphlpapi.dll")] private static extern int SendARP(uint destIp, uint srcIp, [Out] byte[] pMacAddr, ref int phyAddrLen); After recognising that the local ARP cache is used in case of an already existing entry of the requested IP I wanted to delete this entry manually. So I started to acquire the IPNetTable by using the following

Compact framework voice recognize API or library

浪尽此生 提交于 2019-12-11 01:12:04
问题 So far my research telling me that there is no free library for voice recognize. Is this still a case, (because all post I found is old few years). Is there sample app, or anything that I can start with If I want to make my WinMobile C# app be able to recognize Voice from input. 回答1: The only library I'm aware of that works with Windows Mobile and the Compact Framework is Chant. 回答2: Have a look at http://www.microsoft.com/speech/developers.aspx Microsoft offer free implementations, but they

How are the painting of invisible controls handled in WinForms?

眉间皱痕 提交于 2019-12-11 00:57:01
问题 I'm trying to override the OnPaint events of the windows form in .NET Compact Framework . So far, I'm able to draw the controls with gradients, rounded rectangles etc that would not normally be possible with regular controls. However, I'm having problems when I want to make a control invisible. Right now, what I do is re-draw all the controls except those invisible ones. Since it takes a bit of time, it causes some flicker. Does anyone know how windows handles painting the "invisible"

Adding custom message header to a WCF service which is consumed from Windows Mobile 6 client

本秂侑毒 提交于 2019-12-11 00:29:17
问题 I have a WCF Service Application which server to different type of clients. While calling the service methods I want to send some spesific information within the service header. While using a newer version of .NET Framework I can handle the situation using MessageHeader. Since the consumer can see the service as WCF Service there is no problem. [DataContract] public class AuthToken { [DataMember] public string Username { get; set; } [DataMember] public string Password { get; set; } } Client

cf.net exception and other logging

扶醉桌前 提交于 2019-12-10 23:25:27
问题 I want to add some logging capability to a cf.net application running on WM6 Pro. I'm looking at logging exceptions and some of the more sensitive sections of code. I would like to have logs stored both locally (i.e. on the device) and also have them reliably uploaded to a server as well (they will need to be queued, my app is occasionally connected). Does anyone know if this possible with log4net or will I have to write my own logging system? Does anyone have any pointers? 回答1: If you use

How Do I invoke/call a button click event handler form another handler? (c# )

北战南征 提交于 2019-12-10 22:17:25
问题 I must be missing something obvious - I am new to .NET - been developing in C++/MFC for years. In an event handler for a button click I would like to then re-use another event handler/click. However, I can't seem to figure out how to do that. The bit that may be causing trouble is that the handler for the second item I want to "fire" is not on the same form/context. It seems that I should just be able to call the method... But I don't seem to be able to do it. This is in compact framework/Win

How to load an assembly from byte array in compact framework

时间秒杀一切 提交于 2019-12-10 21:16:37
问题 I have legacy clients who use smart scanners with old windows mobile on them. As a result, I'm stuck developing in the compact framework for these smart devices. I am in the process of writing a class library which will provide a plugin type mechanism for an interface to the scanner hardware. I would like to be able to embed the third party assemblies from the scanner manufacturer as an embedded resource in the plugins DLL. I want to do this to avoid having to reflect over all of those third

culture specific string resource dll not working in .net compact framework when application is installed using cab file

我怕爱的太早我们不能终老 提交于 2019-12-10 19:19:13
问题 I have created a application with localization using visual studio 2008 and .net compact framework 3.5 on windows mobile 6.1. To achieve localization, I have used many resource file for this, one for each langauge : StringResources.de-DE.resx StringResources.es-ES.resx StringResources.en-GB.resx StringResources.fr-FR.resx StringResources.nl-NL.resx I also have a StringResources.resx file with default strings for fallback in case other culture not supported by my app is chosen. I have also

How to determine file version of dll file in Compact Framework 3.5 [duplicate]

落爺英雄遲暮 提交于 2019-12-10 18:32:07
问题 This question already has answers here : Programmatically get the version number of a DLL (10 answers) Closed 2 years ago . I want to determine the file version of dll file in 'c#' when the path is specified. Suppose path = "\x\y\z.dll" . How to find the file version of z.dll when path is given? NOTE: I use Compact Framework 3.5 SP1 回答1: Normal Framework If it is a .NET DLL you can use Reflection. using System.Reflection; Assembly assembly = Assembly.LoadFrom("\x\y\z.dll"); Version ver =