windows-mobile

How do I get modified date from file in C# on Windows Mobile?

末鹿安然 提交于 2020-01-18 15:50:40
问题 I make a file in PC, and I want to transfer it to a PPC (Windows Mobile). How can I get the modified date of this file? (I need it on Windows Mobile.) 回答1: FileInfo.LastWriteTime and FileInfo.LastWriteTimeUtc should register this information. 回答2: string strFilePath = @"C:\myfile.txt"; DateTime lastModified = System.IO.File.GetLastWriteTime(strFilePath); Reference: File.GetLastWriteTime on MSDN. 回答3: Try This. FileInfo fileInfo = new FileInfo("path"); var created = fileInfo.CreationTime; /

How do I get modified date from file in C# on Windows Mobile?

北慕城南 提交于 2020-01-18 15:49:08
问题 I make a file in PC, and I want to transfer it to a PPC (Windows Mobile). How can I get the modified date of this file? (I need it on Windows Mobile.) 回答1: FileInfo.LastWriteTime and FileInfo.LastWriteTimeUtc should register this information. 回答2: string strFilePath = @"C:\myfile.txt"; DateTime lastModified = System.IO.File.GetLastWriteTime(strFilePath); Reference: File.GetLastWriteTime on MSDN. 回答3: Try This. FileInfo fileInfo = new FileInfo("path"); var created = fileInfo.CreationTime; /

What might cause SHChangeNotifyRegister to fail on Windows Mobile?

吃可爱长大的小学妹 提交于 2020-01-17 13:58:07
问题 I have the following code: SHChangeNotifyEntry changeentry = new SHChangeNotifyEntry(); changeentry.pIdl = GetPidlFromFolderID(this.Handle, CSIDL.CSIDL_DESKTOP); changeentry.Recursively = true; uint notifyid = SHChangeNotifyRegister( this.Handle, SHCNF.SHCNF_PATHA , SHCNE.SHCNE_ALLEVENTS, WM_SHNOTIFY, 1, ref changeentry); My code is crashing at the SHChangeNotifyRegister. I am trying to register a form for file change notification in Windows Mobile. I think I may be passing incorrect

What might cause SHChangeNotifyRegister to fail on Windows Mobile?

随声附和 提交于 2020-01-17 13:57:12
问题 I have the following code: SHChangeNotifyEntry changeentry = new SHChangeNotifyEntry(); changeentry.pIdl = GetPidlFromFolderID(this.Handle, CSIDL.CSIDL_DESKTOP); changeentry.Recursively = true; uint notifyid = SHChangeNotifyRegister( this.Handle, SHCNF.SHCNF_PATHA , SHCNE.SHCNE_ALLEVENTS, WM_SHNOTIFY, 1, ref changeentry); My code is crashing at the SHChangeNotifyRegister. I am trying to register a form for file change notification in Windows Mobile. I think I may be passing incorrect

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

Windows Mobile: how to highlight row in datagrid and compilation delays

杀马特。学长 韩版系。学妹 提交于 2020-01-16 06:09:06
问题 I have two Windows mobile questions: how to Highlight row in datagrid (after i run any query) ? why after 20-30 compilation, it takes for 6-7 minutes to compile (the first time takes 1 minute)? Thanks in advance! 回答1: For #1, take a look at Ilya Tumanov's example of custom formatting data in the DataGrid. He does custom painting of cells in it. THis is how you'd "highlight" a row. For #2, there's something wrong with your environment. I've not seen this or heard it reported and I've been

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

developing applications for windows mobile,c#

浪尽此生 提交于 2020-01-13 19:33:48
问题 i work on visual studio 2008,now i want to create applications for windows mobile in c#. what r d requirements and how to build them??? Do i need any kind of simulators 回答1: Answering your question with right degree of detailing that it deserves is beyond the scope here. So I recommend you to start from here! Windows Mobile Developer Center 回答2: There is a Windows Mobile SDK available for free from Microsoft, however you must use a full version of Visual Studio (not an Express edition). 回答3:

Why does VS2010 always break on exception from MethodInfo.Invoke?

半世苍凉 提交于 2020-01-13 09:59:28
问题 I have a try/catch around a MethodInfo.Invoke(o,null), and VS2010 is set to never break on Exceptions, but unfortunately the debugger continues to break inside the Invoked method. The method is static, and I've got the Phone Developer Beta installed. Is this a bug or developer error? Thx!! 回答1: Yes, with every exception check-box is un-checked it breaks on only these Invoke exceptions. All the other exceptions work fine. The great news is that an anonymous genius gave me a work-around:

How to embed flash into XNA on windows mobile

北城余情 提交于 2020-01-13 05:32:40
问题 Can I embed flash in XNA? how? Can I get data(flash game result) from the embedded flash? Thanks. http://en.wikipedia.org/wiki/Microsoft_XNA http://www.xnadevelopment.com/tutorials.shtml http://www.code-magazine.com/article.aspx?quickid=0709051&page=7 回答1: 1th question: Its 100% possible to embed flash in XNA if person finds a SWFWiever for Windows Forms.I have written an article about xna-windows controls-wpf integration here: XNA-Windows Controls-WPF Integration 回答2: There is no way