Answer Questions
GKM Time comparison
Hi Can somebody teach me that given 2 time for example: lblstarttime.text = now and lblendtime = now, how do i compare them in term of days, hour, minute and second DateTime date1 = DateTime .Now; DateTime date2 = DateTime .Now; TimeSpan span = date2.Subtract(date1); int days = span.Days; int mins = span.Minutes; int secs = span.Seconds; ...Show All
Leonid Astakhov How to add target device in Visual studio 2005
Hi , i Built runtime image using windows mobile 5.0 platformbuilder. i have installed smartphone sdk. writenow " smartphone emulator "is listed in the Target device dropdownlist. How can i add new target device (that i built using platform builder) to the Targetdevice dropdownlist . I want to debug an application on this device (OS runtime image) using the VS 2005 . I can't figure out how to do this Thanks ...Show All
bowie198672 OnClosing / WM_CLOSE message when switching apps (why?)
I have an application that uses multiple forms for data entry. Each for is modeless and is shown via show/hide. All of these forms are stored in an array list until the user requests them and they are shown. When the user switches applications (ie: starts notepad) on the pocket pc, the window (which is visible), has the OnClosing event occur (which I assume is triggered by a WM_CLOSE message). Why is this happening I've dealt ...Show All
Glen Wardrop safty live
having problems with safty live centre! scan for virus and spyware continues to loop, is there a known isue, as I checked PC for virus and spyware seperatly and found nothing untoward Please contact your software manufacturer for support. Thanks. Closing as off topic. ...Show All
WhPonds [C#][VS 2005 Bete 2] creating & using a C++ in a C# project
Hi, I try to create a unmanaged dll in C++ with visualt studio 2005 and the i want to use it in a c# project. My first question is hoaw to create a C++ (unmanaged) dll project for smartphone in visual stuido 2005. I create a Win32 projecdt>>dll project but i supopose it's only for deskop. After that i wrote my dll. .CPP #include "MyDll.h" // This is an example of an exported function. MYDLL_API int fnMyDll() { return 42;} .H ...Show All
David Tyler Hunt SendKeys
Admittedly, this wouldn't be my ideal solution, but is it possible to emulate the "action" button on a pocket pc or smartphone For instance, if I've popped a CameraCaptureDialog, can I automate image capture and approval simply by pushing the keycode at it Or is it possible to raise any events against this dialog I think the mistake i've been doing is using HWND_BROADCAST and hoping that it would fi ...Show All
dev_questions Smart device help installed correctly?
I have VS2005 installed with WM 2003 and 5.0 SDKs. I am able to build and debug for both sets of platforms although I have just noted that the Windows Mobile SDKs are NOT listed in the results of any searches that I do. E.g., if I search for "SetWindowText" a general win32 API, the WM APIs do not appear only the desktop win32 type. Also, the VM 2003 SDKs appear in the contents but the VM 5.0 SDKs do not. My question is: are the VM 5.0 SDKs ...Show All
Ryan Bolger Protocol Violation Exception
Hi everybody, I’m developing an application for Pocket Pc in C#. I use the visual studio 2005 pocket pc emulator I am trying to do a Http Post using HttpWebRequest but I get a Protocol Violation Exception when I read the response of the server with HttpWebResponse. The ProtocolViolationException says: "System.Net.ProtocolViolationException: the response for this request cannot be retrieved until request data has been written&qu ...Show All
Nightlinerdev How to Hard Reset a Device programatically
I try this http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=260264&SiteID=1 and it's so cool for my first application for secound application I like to try to "hard reset" or "restore factory default" how to thanks OS : Windows Mobile 5 for PocketPC Language : VB it should be something like... private const uint FILE_DEVICE_HAL = 0x00000101; private con ...Show All
David Jemeyson Precompiling forms on a desktop client to display on a Pocket PC device
Hi All. Happy New Year. I am currently writing some software that generates forms that are to be displayed on a Pocket PC device. At the moment, a 'description file' of the form is generated by my desktop component that is uploaded to and interpreted by the PDA. Is it possible to cut some processing from the PDA by using the System.CodeDom and related classes to generate a compliled code file on the desktop component, so the PDA can j ...Show All
pushart Is there no BackgroundWorker Process in the C.F.?
Is this true I can't find it under teh Components tab in VS... Thanks Tryst Thanks for the links, Daniel! So nice links. Tryst ...and to get you started with a sample (plus a VB version) check these out: http://www.danielmoth.com/Blog/2004/12/backgroundworker-sample.html http://www.danielmoth.com/Blog/2004/12/backgroundworker-for-cf-10.html Cheers Daniel Ok - thanks for the replies. Tryst This class i ...Show All
chucho How we can read the csv files in Compact Framework
Sir I have a problem i am trying from last 2 days ,how we can use CSV files in CompactFramework.I have a CSV file I want to read this file and store the contents in dataset.If anyone knows about this This is EXTREMELY helpfull for me. Thanks! Better yet, just use the TextDataAdapter class from SDF: http://www.opennetcf.org/sdf First you will have to read the file line by line using Syste ...Show All
gavinm PocketPC SerialPort and turning off/on the device
Hi, Here a simple C# example that reads data from a GPS Device Assume two Buttons on the form and one Textbox. Further a SerialPort with the DataReceived Event handled in the form. public class Form1 : Form { public delegate void SetText ( string strPar); public SetText myDelegate; public Form1() { InitializeComponent(); } private void Form1_Load( o ...Show All
Scott Nichols Winsock error on WM5 that doesn't occur on WM2003
Well the code freeze was due to a bug in one of the static libraries which i have fixed now :-) So now i have a working application. But now i have another problem with regards to winsock. I have the following code m_socket = socket(AF_INET, SOCK_STREAM, 0); ..... linger lgr; lgr.l_onoff = 1; lgr.l_linger = 5; setsockopt(m_socket, SOL_SOCKET, SO_LINGER, ( const char *)&lgr, sizeof(lgr) 4) . ...Show All
Smokie solved!!!
Thanks for that but I solved this myself using active synch. Till next time........ ...Show All
