compact-framework

How To Set useUnsafeHeaderParsing For .NET Compact Framework

非 Y 不嫁゛ 提交于 2019-12-31 02:26:27
问题 In my Windows CE 6.0 app, I am communicating with a proprietary web server device that is returning bad header information (more specifically, it's returning NO header information). I believe this lack of header information is the reason why my HttpWebRequest methods are not working properly. I recall that the .NET "regular" Framework allows for us to programmatically configure the System.Net.Configuration assembly to allow for invalid headers (useUnsafeHeaderParsing). Unfortunately, for me,

How to Auto-Update Windows Mobile application

▼魔方 西西 提交于 2019-12-30 00:38:33
问题 I have a .net cf 3.5 Windows Mobile application that my client wants to have autoupdate features. Here is what I have so far: create a CAB using the Smart Device CAB Project (is this good enough, or should I be doing something else here) 2.Get the application version number Assembly.GetExecutingAssembly().GetName().Version.ToString(); Call a WCF web service for to do a version number look up. Download a new version of the cab file. ??? Execute WCELoad.exe on the CAB file Profit 回答1: Your

How do I set Network Management settings or make the dialog appear in C# on Windows Mobile?

坚强是说给别人听的谎言 提交于 2019-12-28 06:49:08
问题 In Windows Mobile, when you open Internet Explorer and type in a URL that your device can't connect to, you are notified of this and prompted to (manually) navigate to the screen where you can actually do something about this as a user (Network Management), like so: alt text http://www.freeimagehosting.net/uploads/d3d95e00d2.gif However, if a .NET Compact Framework application tries to connect to a webservice and the webservice URL is not reachable, the "Cannot Connect" bubble does not appear

How to reduce the size of an image in C# and .NET 3.5?

孤者浪人 提交于 2019-12-28 05:47:13
问题 I have a screen shot I take in my mobile app. The screen shot takes about 32 KB when saved as a png on a disk. I am sending these to a central SQL Server and 32 KB is too big for that amount of times I will need to store that screen shot (approx 2500 times a day). Is there any kind of trickery that I can do to get it to save smaller? Here is the code I am using now to take it from Bitmap to bytes (to send to the server for storage): MemoryStream stream = new MemoryStream(); _signatureImage

What are the most valuable .Net Compact Framework Tips, Tricks, and Gotcha-Avoiders? [closed]

▼魔方 西西 提交于 2019-12-28 03:15:10
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . We work extensively in the .Net Compact Framework and Windows Mobile. I've seen plenty of questions come up regarding specifics to

Google search is not working in web browser control

自古美人都是妖i 提交于 2019-12-25 12:17:21
问题 I have developed a browser using the standard WebBrowser control in my application that is built against CF 3.5. Google search is not working in the browser. That is when i navigate to www.google.co.in and type a keyword and click on the serach button nothing is happening. Outside the application from the device if i try the same thing in IE am getting a security warning dialog box and if ok is clicked search results are shown. So in my case do i need to set property on the webbrowser control

Integrating pocket outlook and C# application

我们两清 提交于 2019-12-25 10:52:49
问题 I am hoping someone can help me by pointing in the right direction with a problem I have I want to be able to create appointments using Outlook\Exchange server and sync those to my device using pocket outlook. On the device I want to be able to open the appointments application on the device, clicking on a menu option and pass the appointment details to another application (which I am writing also). Any ideas? How easy is this to do and where is the best place to start looking for working how

Cannot p/invoke C method from C# due to marshalling issues

早过忘川 提交于 2019-12-25 07:43:03
问题 I'm trying to invoke the I2CTransfer function below, and immediately getting a System.NotSupportedException . I suspect my marshalling is wrong, but cannot work out the problem. Here are the C structures: BOOL I2CTransfer(HANDLE hDev, PI2C_TRANSFER_BLOCK pI2CTransferBlock); typedef struct { I2C_PACKET *pI2CPackets; INT32 iNumPackets; } I2C_TRANSFER_BLOCK, *PI2C_TRANSFER_BLOCK; typedef struct { BYTE byAddr; BYTE byRW; PBYTE pbyBuf; WORD wLen; LPINT lpiResult; } I2C_PACKET, *PI2C_PACKET; And

How do I keep a Windows Mobile Professional Device in the Unattended Power State

拥有回忆 提交于 2019-12-25 04:53:35
问题 I have a .net 3.5 application running on windows mobile professional that uses sql server ce 3.5 and merge replication with sql server 2005 sp2, it not yet a 1.0 product. Every couple of minutes or so it starts a merge replication using a timer control. I suppose down the line I'll have to have some kind of push senario, either using long lived HTTP requests or Window Mobile Email WCF. However in the meantime my problem is that the devices are being "put to sleep" whilst waiting for the

Anyone got Twitter xAuth working with the Compact Framework yet?

ぃ、小莉子 提交于 2019-12-25 04:53:34
问题 This question is related to a number of other questions on oAuth on the Compact Framework (one, two) but seems slightly more specific to me, as it specifically involves getting Twitters xAuth API call (meant for non web applications to be able to do oAuth) working on the Compact Framework. Are SSL HTTP connections and the encryption methods needed for xAuth needed part of Compact Framework 3.5? Did anyone get the Twitter xAuth working on Windows Mobile already? If so, what libraries did you