opennetcf

Problems using ImageHelper to resize images on OpenNetCF with HTC T3333

两盒软妹~` 提交于 2019-12-08 13:40:51
问题 I use the class ImageHelper who was quoted in the article of Chris Tacke to resize large images on Compact Framework, using OpenNetCF.Drawing namespace. In many devices that have Windows Mobile 6.5 version Embebbed the class worked perfectly. However in some devices with the Windows Mobile version 6.1 (robust Honeywell equipment) and HTC T3333 (Touch2) throws an exception "0x887b0005". Is there any limitation on the use of this device? There is an alternative to solve this problem? 回答1:

How can I read a string from OpenNETCF.IO.Ports.SerialPort?

感情迁移 提交于 2019-12-08 07:53:07
问题 I write commands to a belt printer using OpenNETCF.IO.Ports.SerialPort this way: public static bool SendCommandToPrinter(string cmd) { bool success; // init'd to false by default try { SerialPort serialPort = new SerialPort(); serialPort.BaudRate = 19200; serialPort.Handshake = Handshake.XOnXOff; serialPort.Open(); serialPort.Write(cmd); serialPort.Close(); success = true; } catch // may not need a try/catch block, as success defaults to false { success = false; } return success; } ...now I

How can I read a string from OpenNETCF.IO.Ports.SerialPort?

爱⌒轻易说出口 提交于 2019-12-06 15:37:40
I write commands to a belt printer using OpenNETCF.IO.Ports.SerialPort this way: public static bool SendCommandToPrinter(string cmd) { bool success; // init'd to false by default try { SerialPort serialPort = new SerialPort(); serialPort.BaudRate = 19200; serialPort.Handshake = Handshake.XOnXOff; serialPort.Open(); serialPort.Write(cmd); serialPort.Close(); success = true; } catch // may not need a try/catch block, as success defaults to false { success = false; } return success; } ...now I need to read a value returned from a "get val" call, but I don't know how, and I haven't been able to

Unable to load DLL 'coredll.dll': The specified module could not be found. (On Windows XP)

我怕爱的太早我们不能终老 提交于 2019-12-06 04:29:25
问题 Thanks to the gurus at StackOverflow. You guys are awesome. I posted on question on detecting idle time on a Compact framework application and got answers very quickly. When I tried the suggested solution on my Windows XP development box, I get this error Unable to load DLL 'coredll.dll': The specified module could not be found. (On Windows XP) After googling for sometime I understood that OpenNETCF libraries are trying to launch coredll.dll to detect the idle time but this dll is shiped with

OpenNETCF Signature control question

眉间皱痕 提交于 2019-12-04 04:43:12
问题 I am using the Signature control in OpenNETCF. It works great for most everything I need. However, I need a way invert the signature and load it back in. It has a call to get the "bytes" for the signature ( GetSignatureEx() ). It returns a byte[] of the signature. This signature can then be loaded back in with LoadSignatureEx() . I can't seem to figure out the system for these bytes. I thought they may be coordinates, but it does not seem so now. If anyone out there knows a way to invert the

Compact Framework - OpenNetCf.Net FTP Samples?

前提是你 提交于 2019-12-03 04:41:23
I am trying to get the OpenNetCF.Net FTP Components working with my PDA application. I am struggling to get it doing any more than connecting to the server and wondered if anyone knew of any sample code I could use to learn how to use it with? I need to be able to download and upload files, as well as determining the download size of any files that I wish to download. Thanks in advance. I don't like the classes in the OpenNETCF.Net.FTP namespace (the ones in the Smart Device Framework). They're based on streams just like the full framework version (which is why we did them that way) but I find

OpenNETCF Signature control question

只愿长相守 提交于 2019-12-01 20:45:28
I am using the Signature control in OpenNETCF. It works great for most everything I need. However, I need a way invert the signature and load it back in. It has a call to get the "bytes" for the signature ( GetSignatureEx() ). It returns a byte[] of the signature. This signature can then be loaded back in with LoadSignatureEx() . I can't seem to figure out the system for these bytes. I thought they may be coordinates, but it does not seem so now. If anyone out there knows a way to invert the signature and load it back in, I would be grateful to hear it. Note for others who may care: These

How to attach Messages from a Form shown with ShowDialog to Application2?

徘徊边缘 提交于 2019-11-30 22:56:21
I am trying to use the code in this article that lets you know when your app is idle.. This code works great if your application has only one form. You call Application2.Run(myOnlyForm) on it and all messages get routed through the filters in Application2. However if at any point you call mySecondForm.ShowDialog() that dialog does not get its messages filtered through Application2. Is there any way (with out bad side effects) to get the messages on mySecondForm to go through the `Application2' event filters? I have tried: Changing mySecondForm.ShowDialog to Application2.Run(mySecondForm) .

OutOfMemoryException loading big image to Bitmap object with the Compact Framework

一笑奈何 提交于 2019-11-29 07:49:31
I have a problem with a memory leak. I have this code in a button_click : Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Dim ms As New IO.MemoryStream Dim bm As New Bitmap("\Application Data\imgs\IMG22.jpg") bm.Save(ms, Drawing.Imaging.ImageFormat.Jpeg) End Sub This code works just fine when I'm running the .exe at my laptop (I mean under windows7/32bits with the full .net framework) but when I run the app in a device with WindowsMobile 6.1 the app throws this exception: SmartDeviceProject22.exe OutOfMemoryException at Microsoft.AGL

OutOfMemoryException loading big image to Bitmap object with the Compact Framework

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 01:30:00
问题 I have a problem with a memory leak. I have this code in a button_click : Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Dim ms As New IO.MemoryStream Dim bm As New Bitmap("\Application Data\imgs\IMG22.jpg") bm.Save(ms, Drawing.Imaging.ImageFormat.Jpeg) End Sub This code works just fine when I'm running the .exe at my laptop (I mean under windows7/32bits with the full .net framework) but when I run the app in a device with