Answer Questions
rebeccat Treo 700w side button
This question is specific to the Treo 700w. I want to get the state of the side button, whether it is being pressed down at the moment. I tried to use GetAsyncKeyState() with every number from 0 to 255 while I was holding down the side button. Then I played around with what window messages I could get because if I could get a window message when the button was released, then that would be ok as well. So I did SHSetAppKeyWndAssoc(0xc6, hDlg); But the only window message generated was WM_KEYDOWN. Then I tried RegisterHotKey(hDlg, 0xc6, MOD_WIN | MOD_KEYUP, 0xc6); But I got both WM_HOTKEY events, the one for the the button press and the one for the button release in immediate succession, even though I was still holding down the bu ...Show All
Robeen_S Custom Control doesn't invalidate original drawing area when resized
Hello, I'm having a problem anchoring and resizing custom controls on Windows CE 5.0. For testing purposes I created a simple custom control that overrides OnPaint and draws a border. The issue is that when I resize the control, either programmatically or by using anchoring, the original region of the control isn't updated. If the control is docked, the entire drawing region updates correctly. Does anyone know why this is happening I'm using CF 2.0 SP1. Chris Invalidate does nothing else as instructing the OS to redraw the window. Search the forums for 'invaildate' for a more detailed answer. I'd suggest that you test your custom control on a Windows Mobile 5.0 device (Emulator would do as well) to s ...Show All
Sarwanan Unknown error occurs when using ToolHelp functions in EVC++
I use Embedded Visual C++ SP4 with Pocket 2003 SDK. When building a project occurs such error: program.obj : error LNK2019: unresolved external symbol CreateToolhelp32Snapshot referenced in function "bool __cdecl InitParent(struct HWND__ *)" ( InitParent@@YA_NPAUHWND__@@@Z) This error occurs with each ToolHelp call. I tried to find a cause of such errors but i failed. I need your help or at least advise. 'Unresolved external' linker error are usually caused by a missing import library. In your case, add the 'toolhelp.lib' to the 'library modules' section (to be found in the Link tab of the project settings dialog) ...Show All
bchan Hide Waypoints icons?
Hi. I'm just getting into Virtual Earth for a project to track exercise mileage. As such I want to generate a route, which I can do. One of the first things I noticed is that I'd like to hide the waypoint icons on the route so that the participant's status pushpin on the route is more easily noticeable. Can this be done Thanks You beat me to it John. That was my code. I'm happy to see it has been useful. I'm going to be posting a DrawCircle function later today that accepts a starting lat/long and radius (in miles) and draws a circle on the map. Thanks SoulSolutions. That works great. I even figured out how to use my existing callback with the new one. Thanks again. An ...Show All
MarcNicol Pushpin Management
Is there a way to sort the pushpins by name in a collection Also, is there a way to find a pushpin by name in the provided GUI I'm looking for included functionality in the local.live.com website, not custom development. Thanks, --Mike ...Show All
johnnygoodface Form disappears automatically
HI, I try to load a new form from the main form, after closing the main form. The code seems to work fine except that the new form loaded closes automatically. Can anyone tell me how I can solve this problem Thanks very much using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Net; using System.Net.Sockets; using System.IO; namespace MyClient { public partial class mainForm : Form { RequestForForm RequestForm; public mainForm() { InitializeComponent(); } private void connectButton_Click( object sender, Ev ...Show All
GTH .NET compact framework 3 / WPF
Hi, i've been looking for info about this but with no success, when will the .NET compact framework 3.0 be available (i am not taking about netcf3.5) .To be more precise, i would like to know when will the support for WPF be available on mobile devices, is it planed with Windows Mobile 6 or sooner thanks I agree with you... I just don’t think such a move is likely to happen immediately when there is still so little hardcore hardware on the market. Who knows, maybe we’ll see a 3.0 CF around the time Orcas ships and/or around the time. If WPF/E isn’t enough for you (does kinda suck that it doesn’t do 3d) and while you wait on a more capable WPF for the compact framework... there is always Direct3D . thanks for your respons ...Show All
Joymon MySQL connector for the compact framework
Hi! I'm programming with the great visual studio 2005 c#. I have to establish a connection to a mysql database from my pocket-pc. Is there any built-in connector in the .NET Compact-Framework My search through this forum brought as a result only a commercial connector (which is not free): http://crlab.com/mysqlnet/ Which connectors do you use to establish connections to mysql-databases Are there any chances to get a connector for free thanks for your replies, yours ulric. Now, I'm using the Corelab MySQLDirect .NET Data Provider. It's working perfectly with a windows application, but I wonder how to use it for a Smart Device. As i did it for the Windows c# application I did it for the PPC: *) ...Show All
kilo94 Upgrading to Windows Mobile 5.0
My Toshiba e830 is running Windows Mobile 2003 Second Edition (version 4.21.1088). Can I upgrade this PDA to Windows Mobile 5.0 If yes, where would I find the software thanks This forum is smart device development related. Since your question is not related to smart device development, it's off topic here. Please post to relevant forum or news group: http://support.microsoft.com/newsgroups/default.aspx Closing as off topic. Hint: Microsoft never provides updates to devices directly, manufacturers do. So check with manufacturer if update is available. ...Show All
arse rapi.AcitiveSync
How can i understand/control the failure of rapi connection from the code while developing a simple device application thanks... You may want to go thru the RAPI documentation and read articles on RAPI programming. Manav Most of the RAPI calls return error codes and you can use GetLastError() function to see the error info and use appropriate program logic to code againt such errors. Info on GetLastError http://msdn.microsoft.com/library/default.asp url=/library/en-us/wceappenduser5/html/wce50lrfcegetlasterrorrapi.asp MSDN Info about RAPI http://msdn.microsoft.com/library/default.asp url=/library/en-us/apippc/html/ppc_api_template_yjfpo.asp Manav Before any remote applicati ...Show All
RussP Draw a circle given a lat/long and radius (in miles)
Had to do this for a project here at work and thought I would share the code: function AddCircle(latin, lonin, radius) { var locs = new Array(); var lat1 = latin * Math.PI/180.0; var lon1 = lonin * Math.PI/180.0; var d = radius/3956; var x; for (x = 0; x <= 360; x++) { var tc = (x / 90)* Math.PI / 2; var lat = Math.asin(Math.sin(lat1)*Math.cos(d)+Math.cos(lat1)*Math.sin(d)*Math.cos(tc)); lat = 180.0 * lat / Math.PI; &nb ...Show All
Gustav OK About SDIO Card Driver
Hai, I am studying about the SDIO Card driver. From my understanding the client driver is loaded after inseting the SD Card by the Bus driver. When the Host controller Driver is loaded Actually i want to diagnosis the SD Card port before inserting the SD Card .Is there any means to find this.I am using the PXA270 processor Hi Yes, thats right. The SD Host Controller driver itself gets loaded by the device manager (device.exe) on OS boot time. Read more here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/wceddk5/html/wce50condriverloadingprocess.asp The main tool to debug a driver is the kernel debugger shipped in Platform Builder. Details on how to use those tools can be found here ...Show All
ChrisMentioned OPNET
hi expert, I am using the OPNET to implement a snoop protocol. Now i am facing problem in generating the cache table and also the source code in the snoop_data and snoop_ack. Can anybody help. Thank for advance hi can tell me how to configure OPNET acdemic version in windows vista What is the OPNET Hello Lee, I am currently doing a project with OPNET and also implementing Snoop Protocol and having a hard time finding the modules for opnet or compiling source without errors. Maybe we can work together.................. This forum is smart device development related. Since your question is not related to smart device developmen ...Show All
FergusLogic Serial Port DataReceived Event in .Net 2.0
Hi there, This is driving me crazy, I cannot seem to get the DataRecieved event to work on the Pocket PC using the new serial port class in Visual Studio 2005 with C#. The DataRecieved event just never seems to be called. I can write data to the port just fine. Here is some very simple sample code that reproduces the error:. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO.Ports; namespace SerialTest { public partial class Form1 : Form { // Setup the port private SerialPort port = new Se ...Show All
bo.skjoett How to display Open Folder dialog ??? in smart app
How can I display the Open Folder dialog in Win32 Smart Device project is there any function to do it Gurgen Use code something like: OpenFileDialog dlg = new OpenFileDialog (); dlg.ShowDialog(); Manav Thanks a lot There is no class OpenFileDialog in win32 API, I think this is a .NET Framework class I don't need it. I've tryed to use SHBrowseForFolder function, but some error occured during linking unresolved external symbol SHBrowseForFolder referenced in function "void __cdecl ...... I've added the lib Ceshell.lib, but no changes, error still remains. Anybody please help me...:( Hi, SH ...Show All
