compact-framework

sending USSD in C#?

风流意气都作罢 提交于 2020-01-31 18:11:23
问题 I want to write a simple c# application runs on windows mobile 6 which can send USSD messages Is there any library that could help me in doing this?? or is there any examples that explains how to use lineSendUSSD thanks 回答1: You have to P/Invoke to access the phones TAPI functions. Have a look at this thread: Windows Mobile Developer Center 来源: https://stackoverflow.com/questions/1725860/sending-ussd-in-c

sending USSD in C#?

北慕城南 提交于 2020-01-31 18:11:10
问题 I want to write a simple c# application runs on windows mobile 6 which can send USSD messages Is there any library that could help me in doing this?? or is there any examples that explains how to use lineSendUSSD thanks 回答1: You have to P/Invoke to access the phones TAPI functions. Have a look at this thread: Windows Mobile Developer Center 来源: https://stackoverflow.com/questions/1725860/sending-ussd-in-c

Is there a good way of switching between different debugging environments on windows mobile emulator

一个人想着一个人 提交于 2020-01-25 12:28:07
问题 I've got a .NET CF (C#) mobile application that I run on a windows emulator. This application uses a sqlce database, and also is controlled by a number of config-like files. I frequently need to change back and forth between different debugging environments - i.e. I need different versions of the database as well as the config files - b/c the application is being used differently in each of the environments. My initial thought was to use different emulators for different environments, but

Bring data came from async operation to main thread

我与影子孤独终老i 提交于 2020-01-25 08:43:06
问题 This is a "problem" i have with data that i receive from a library that has some Async operations on sending and receiving data. While i receive data and get data in my Mobile Windows Form or Desktop i need to deal with the cross thread operation. I deal with this while checking InvokeRequired and do Action if true...etc...But, what i really would like is to make this disappear and get my data correctly so i could bind them manipulate etc, without handling this cross-thread problem. Question

Compact Framework - Retrieve a list of countries and regions

白昼怎懂夜的黑 提交于 2020-01-23 09:44:30
问题 Afternoon people! I'm trying to implement a list of counties on my Compact Framework (Mobile) application. I can do this easily in the full .Net framework with CultureInfo.GetCultures(..etc). However, the CF seems to be missing this feature? Is there any way I can return a list of countries (and regions if possible) that I can populate into a ComboBox? The OS has a list of countries, so there must be a way to do it? I look forward to hearing back! 回答1: How about this? using System; using

How can I determine free space on a Windows CE device?

喜你入骨 提交于 2020-01-17 04:17:11
问题 I need to determine how much free space there is on a Windows CE device, to conditionally determine whether a particular operation should proceed. I thought Ken Blanco's answer here (which bears a striking similarity to the example yonder) would work, which I adapted as: internal static bool EnoughStorageSpace(long spaceNeeded) { DriveInfo[] allDrives = DriveInfo.GetDrives(); long freeSpace = 0; foreach (DriveInfo di in allDrives) { if (di.IsReady) { freeSpace = di.AvailableFreeSpace; } }

Why would I get, “The remote server returned an error: (400) Bad Request” with this code?

回眸只為那壹抹淺笑 提交于 2020-01-16 17:34:09
问题 I was first getting "Unable to connect to the remote server" but then remembered that I couldn't use "localhost" from a handheld device. I swapped that out with the name of the machine like so: String uri = String.Format(@"http://PLATYPUS:21608/api/inventory/sendXML/woodrow/gus/{0}", fileName); //I reckon I could also use the IP address in place of the machine name, but probably would make no difference ...and now I get, " The remote server returned an error: (400) Bad Request " The same

external qwerty keybord for programming by compact framework

陌路散爱 提交于 2020-01-16 09:35:07
问题 we decided to design a keyboard(bluetooth or data cable) for using on a smartphone. so, can we programming a smartphone by compact framework?is that possible? 回答1: What do you mean by "possible"? If the device has Bluetooth and you have the capabilities of creating a bluetooth keyboard, then certainly it would work. The "programming" part of the question needs clarification, though. You program in Visual Studio on your desktop PC, then compile the app and deploy it to the device. Obviously

CryptographicException: Unknown Error '80007005'. when calling RSACryptoServiceProvider.Decrypt() in .Net Compact Framework

牧云@^-^@ 提交于 2020-01-15 10:43:11
问题 I am trying to use the RSACryptoServiceProvider to encrypt/decrypt. Encrypting works fine, but the Decrypt method throws an exception with the message: Unknown Error '80007005'. This is the code: Byte[] plainData = encoding.GetBytes(plainText); Byte[] encryptedData; RSAParameters rsap1; Byte[] decryptedData; using (RSACryptoServiceProvider rsa1 = new RSACryptoServiceProvider()) { encryptedData = rsa1.Encrypt(plainData, false); rsap1 = rsa1.ExportParameters(false); } using

Detecting if the Compact Framewok is installed on mobile device

若如初见. 提交于 2020-01-15 06:55:29
问题 Ive written an application using the .net compact framework. One of the requirements is that a check is run before app runs to see if the compact framework is installed. If not I should prompt this to them and redirect them to cf download location. What would be the best most common approach to doing this. Obviously my .net wont run in the first place if .net cf is not installed, do i need to write this in eVc++? Much appreciate your thoughts on the Tony 回答1: This is an MSDN article about