Answer Questions
Dan Shookowsky Obtain the name of the current executing Function
Hi I need to obtain the name of the function which it’s executing, in other words the function need to know its name. Thanks for your help. On desktop I would probably use MethodBase.GetCurrentMethod() instead of StackTrace, but yes - it's easy to do on desktop. It's not a very common task though and it was not needed internally so it was cut on devices. Believe it or not but there’s no good way to do it. The very ugly way is to throw and catch exception and get the name from stack trace. System.Diagnostics.StackTrace lobjStack = new System.Diagnostics.StackTrace(); //Get the immediate caller System.Diagnostics.StackFrame lobjCaller = lobjStack.GetFrame(1); Sys ...Show All
caitac Data Performace using TableDirect (Updates and Inserts)
I am writing a data loading routine which will take an XML stream and populate a table. From the XML, I know the name of the table, the column name, and the value for the given row. The problem I am encountering is performance with loading the data because I have to decide if the SQL command should be an insert or an update. If the data exists, then I should update the columns, if the data is a new row, then I should do an insert. The XML will be for only one table, so I can use TableDirect in the command object. Right now, I am using the DataAdapter/Table to find the row having the key. If the row is returned, then I update, if not, then I do a Rows.Add. (See code below). It is taking about 3 minutes to ...Show All
Sam Jost VE seems to have incorrect latitude and longitude references
Hi, Every single latllong that I go to on VE seems to be out by about 15km. I have used several different handheld GPS units to get latlong's of my local area and these match up exactly with google earth but are out by about 15km with VE. I have also downloaded WinformsEarthV2 and this seems to be having the same problem. Further to that I have taken an exact copy of sample code from the sdk and tried setting the center to one of my local latlongs and once again it was out by approximately 15km which gives me the impression that it's a VE problem not one with my code, but I don't think this is very likely. Therefore I must be doing something wrong! Can anyone please point out what I am doing wrong Cheers, Scott. ...Show All
IEQ Import registry for the emulator
I know how can I export registry of the emulator that is by the help of remote registry editor tool. But Is there any way I can import registry which I have exported on some time ago. Sorry, but I don't know of a tool that could replace an entire registry with a new one while the OS is still running. Barry ...Show All
Marcin Książek I want a button that will navigate to the My Document folder when pressed
I want to have Buttons in a VB Form navigating to places like,My Documents, Network Places, My Pictures etc. Does anone know code for me to be able to do this... Thanks Could you help me with the GetfolderPath code. IS the this the code I would need to accomplish what you are saying. I want to access the my document folder and the SD card. Example code from VS2005 ' Sample for the Environment.GetFolderPath method Imports System Class Sample Public Shared Sub Main() Console.WriteLine() Console.WriteLine("GetFolderPath: {0}", Environment.GetFolderPath(Environment.SpecialFolder.System)) End Sub 'Main End Class 'Sample ' 'This example produces the following results: ' 'GetF ...Show All
BuddyBoy2006 How to debug my phoneime.dll on windows mobile emulator for smartphone?
hi, all When I start debugging, compile and deploy sucessfully, but notify me non-exeute file,no debug. My input method can't be called out also. Then I revise regedit,inputmethod can be called out. Then debug, deploy failed: Deployment and/or registration failed with error: 0x8973190e. Error writing file '%CSIDL_PROGRAM_FILES%\phoneime\phoneime.dll'. Error 0x80070020: The process cannot access the file because it is being used by another process" . What's problem Thanks. IME is loaded by shell and kept in memory. You need a soft reset to be able to deploy a new version ...Show All
poon23 Virtual PC/Windows CE Emulator "A driver is installed that causes stability problems with your system. This driver will be
I am using Visual studio 2005. I am developing Windows Mobile 5.0 smartphone application. After necessary installation when My system starts I get the following error Virtual PC/Windows CE Emulator A driver is installed that causes stability problems with your system. This driver will be disabled. Please contact the driver manufacturer for an update that is compatible with this version of Windows . Contact Information: Web Site: http://go.microsoft.com/fwlink/ LinkId=26320 Resolution is to alter boot.ini But I think This will lead to unstable the system. Could There be any other resolution [Like Patch or something else] for this problem Tryst wrote: I have the following line i ...Show All
Eric_Martin Setting a default application in pocket PC
Hi, We have developed an application in C# .Net Compact Framework using .NET Visual Studio 2003 and have it running on the Pocket PC(HP iPaq 5555) as well. I have 2 requirements : 1)I need to make this application the default application that is launched when pocket pc starts up 2)Need to disable all other applications / other windows programs when this application is running. Any ideas on how to do the same Thanks Smitha I guess you can place a shortcut to the application in the startup folder of the device, this will startup the application upon starting up the device. as for #2 - I don't know im afraid. hope the answer to Q#1 helps Actually, in addition to disabli ...Show All
occam123 Information needed regarding the file system
hi, I want information related to file renaming.Suppose On device, i have images named suppose xyz. Now if i rename this file to ABC. How can i get programmatically tht the file name has been changed. Actually, my appln is related to uploading of the images to the server. So i use MD5 hashed code for the file, so if the uploading breaks, next i check the file with the server already uploaded files and start uploading from where it stopped. hashing takes alot of time, so depending on the filename uploading is continued next time. the problem i m facing is, if in case user changes the filename and later when i check for already uploaded files, i cant get the file that is renamed as already uploaded. How to get the information whether its nam ...Show All
Stanislav Ogryzkov Database Application with Access Backend
I'm a beginner with database and pocket pc development so i need some ideas on how to best do this. I want to develop an application for Windows Mobile 2003 and up. The application will store information such as customer info and what-not in a database that is stored on the pocket pc. I have an Access database that was pre-made and that database needs to sync to the pocket pc. I've read that there is a SQL Server 2005 Compact Edition Access Synchronizer but I can't figure out which version of SQL Server 2005 it works with and every time i try reading about SQL Server 2005 Compact Edition, SQL Server Mobile Edition, SQL Server Everywhere i get confused. I can't figure out the difference among them. See if ...Show All
acm programmer why cannot get phoneNumber?
Hi, i run the project: \Windows CE Tools\wce500\Windows Mobile 5.0 Smartphone SDK\Samples\CPP\Win32\Getphonenumber on my Mobile phone based on smartphone , but it return NULL, it can not get the phone number why Thanks. Thanks, i get it. oysts wrote: The phone number can be stored on the SIM card. Most operators don't store it by default....That's why the sample code in the SDK "Does not work" :) Oystein Thanks,oysts. if the number stored in the SIM Card, how to get it Does the '' SDk" sample supposed the number is stored in the SIM Card Does you mean the number may not be stored in the mobile The phone number can be stored on the SI ...Show All
Niro Get Location Name From LatLong
hi, how to get the Location name From The latitude value and Longitude vaule while using VirtualEarth SDK, Thanks in Advance The process is called "reverse-geocoding", VE doesn't do it, there are various providers including the Map Point web service from Microsoft. These are usually a fee per lookup type service if you exceed so many per day. You can build your own process, it is a bit of work and you need to get the data for the area. Map Point does a reasonable job and is simple to use. John. ...Show All
Neotech IRDA file transfer problems
I am trying to trasfer some database files using IRDA between PPC 2003 devices running the compact framework 2. When transfering a very small text file, it works fine. When transferring a 288KB .sdf file, I get an IOException on both devices. I am using c# using the sample code provided here: http://msdn2.microsoft.com/en-us/library/system.net.sockets.irdaclient.aspx#Mtps_DropDownFilterText Looking at the code, I don't see any reason for it to throw an exception. On the receiving device I get this exception: IOException Unable to read data from the transport connection. On the sending device I get this exception: IOException Unable to write data to the transport connection. It is not consistent exactly how many times it will loop before th ...Show All
singam GSM Signal Strength
Hello Everybody Through my VB. Net application for my iPAQ, how can I know the GSM Signal strength. Regards Easy way - to use the State and Notification broker in Windows Mobile 5. If that's not an option, you can try P/Invoking lineGetLineDevStatus in Tapi. OpenNetCF should also be able to help you out ...Show All
Tao Wang CSI DMO filter sample code for Windows mobile 5.0
If some has DMO filter sample code for Windows mobile 5.0 pl post me Actually I tried to convert from deskop DMO to device but I am failed to register that DMO dll. My code is like, CComModule _Module; BEGIN_OBJECT_MAP(ObjectMap) OBJECT_ENTRY(CLSID_IBHOObj, CIBHOObj) END_OBJECT_MAP() extern "C" BOOL WINAPI DllMain ( HANDLE hInstance, DWORD dwReason, void * /*lpReserved*/ ) { if (dwReason == DLL_PROCESS_ATTACH) { _Module.Init(ObjectMap, (HINSTANCE)hInstance); DisableThreadLibraryCalls((HINSTANCE)hInstance); } else if (dwReason == DLL_PROCESS_DETACH) _Module.Term(); return TRUE; } ///////////////////////////////////////////////////////////////////////////// // DllCanUnloadNow //////////// ...Show All
