Answer Questions
MichaelJHuman sound
how to play a wave sound when the button is click You can also look at this Sample http://samples.gotdotnet.com/quickstart/CompactFramework/doc/playsounds.aspx that shows the use of Pinvoke to call a the native code to play sound. Or you can use the Libraries OpenNETCF has as Ilya suggested. Amit I guess I'm too new to understand the responses to these posts, but I am thinking about adding a wav sound to an event (button click) in my Smart Device app. I am writing in VB.net 2005 for the Smartphone 2003 SE. I would like to embed the file in the project, which I think I can follow, but how to add the code to play the sound is confusing, as well as where to pl ...Show All
BhuttCrackSpackle Loading an assembly in a new AppDomain
Hi all! Is there a way to load an assembly in a new AppDomain Thanks in advance, Marco Minerva, marco.minerva@tiscali.it http://blogs.ugidotnet.org/marcom You could use the AppDomain class, call CreateDomain to create a new app domain and then call ExecuteAssembly to run the new assembly in that domain. AppDomain also supports Load but not for the compact framework. ...Show All
B.Young Discover cradled PocketPC
Hi! I'm looking for a way to programmatically (preferably through .NET, but native code will do as well) discover a PocketPC in its cradle so that I can access its registry and retrieve some files from it. I'd be grateful for any help in this matter. See my reply here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=948007&SiteID=1&mode=1 Do you want to detect on the Pocket PC if it's cradled, or on the PC to which the cradle is connected I forgot to mention that I'm working in the VS.NET 2003 Dev environment. I can't find anywhere saying that class is available in the .NET 1.1 framework. I've been trying to find an answer to this for quite some time now, and I appreciate y ...Show All
Senthil A Panning with polylines
I've created an app that creates a polyline covering a large area and then pans around the map by calling map.Pan(1, 1) or something similar. This works well but on Firefox (and sometimes on IE) the polyline is not redrawn. I've got a workround in which I call GetCenter(), offset the result by one pixel and then call SetCenter() which triggers the polyline to redraw but I wondered if there's a better method There seems to have been an map.Update() method in past versions of the API that isn't in any more, is there a similar method in 3.1 Or a simple way of redrawing overlays Thanks, -- Marc Sutton Codev Ltd hey i am also seeing a similiar behaviour , polylines just dont appear on the map...any idea why ...Show All
DevboyX windows mobile 2003 SE and net cf v2
I moved from using visual studio 2003 to develope an application for a windows mobile 2003 SE PDA to vs2005. After some problems this now works. However when I upgrade to using .net cf v2 and download to the PDA the forms in the application become compressed to appox. a quarter of their origial size. The menus are still in the correct place its just the size oif the forms. Has anyone else had this problem, does anybody know of a solution I already have NETCFv2 SP1 installed. Thanks Rob Ilya, Just got round to trying this, unfortunately it makes no difference. Is there anything else it could be Thanks Tim, Di ...Show All
Aoeuid Add Today Item
I have been try to figure out how to add a Today Item which is in quotes and nothing seens to work. Any help would be greatly appreciated. Here is the code that I have been trying to get working. Microsoft.Win32.Registry.LocalMachine.CreateSubKey( "\Software\Microsoft\Windows\Today\Items\'Wireless'" ) Microsoft.Win32.Registry.SetValue( "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Today\Items\'Wireless'" , "DLL" , "netui.dll" , Microsoft.Win32.RegistryValueKind.String) Microsoft.Win32.Registry.SetValue( "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Today\Items\'Wireless'" , "Order" , 1, Microsoft.Win32.RegistryValueKind.DWord) Microsoft.Win32.Registry.SetValue( "HK ...Show All
Mcduck programmatically remove program
Is there a way to programmatically remove a program that is listed in the Removed Programs instead of having the user navigate to the Settings..System...Remove Programs...selecting the desired program to remove k. I went down the registry route and encountered a problem. I get a "Unauthorizedaccessexception" error when trying to delete the subtree. Found the article to use the unload.exe: http://www.pocketpcdn.com/articles/uninstall.html Also found this quote: On all Smartphone devices, as well as the next version of Pocket PC, the "official" way of doing this is through calling DMProcessConfigXML with the UnInstall CSP. Querying this CSP will also tell you ...Show All
Juice Johnson BOTS on MSN
There have been a number of questions about BOTS in the forum in various theads so I thought I would provide this post with a broader update on the topic. MSN has recently started licensing BOTS on the network. The huge benefit of a licensed BOT is that it will have contact limitations removed (the reverse list), so that millions of people could connect to the same ID. Our goal is to enable a broad network of these IM applications integrated with other MSN services (Activity API, Search, etc.). To make sure our customers have the best experience with these applications and provide tools to the broadest number of companies seeking to build BOTS, we have started licensing ISV’s that build platforms with access to our protoco ...Show All
Derek Nedelman Device connection notification
I was wondering if active sync or any other windows api gives us a notification if a windows ce device is connected to the computer via active sync, what i want to do is to connect to the device via RAPI when it is connected to the computer. any ideas ... ! Use State Notification Broker for handling various events. See this http://www.developer.com/ws/pc/article.php/3547381 Manav ...Show All
Rambalac newby question
Hi just a few basic questions. Can this control be used with vs.net 2003 or 2005 web applications Can this control import in shape files What is the cost of the control and or what software does it come with Thanks Paul. Hi thanks for the information. I am not sure if you are familiar with the Dundas Map Control but just wondering how this might compare The Dundas map control may have more features as it is a true .net control when added in as a reference. 1. Yes. It is just a javascript control, so you can use it with your favorite Web dev tools (including Notepad ). 2. The VE control does not current import SHP files directly, but I've found a free tool online that converts SHP file to GPX files. I then built a sim ...Show All
olloemre CABWIZ/Makecab problems
Hi all, I'm having trouble building a CAB file for a CF 2 project. Done the usual steps, Added a Smart Device Deployment project to my solution, set its propertys, go to build and Always get back a message saying ; Error: CAB file "C:\Documents and Settings\DAVE\My Documents\Visual Studio 2005 \Projects\Project1\DeploymentCAB\Release\Project1. CAB " could not be created It's really annoying, I dont want to have to go back to using 2003 to build projects as I really like the new features in CF 2, but if I cant deploy them correctly, then theres no point. Any thoughts/comments appreciated. Dave Hiya, That helped get rid of the problem reading etc... But sadly still no go. ...Show All
pvulcan Accepting mutliple requests in server sockets
Hi, I want my server socket to accept mutiple requests arriving simultaneously. Can anyone tell me how to acheive this Thanks very much Not an easy topic to cover here so i suggest you read up on the topic. Basically you need to use async socket connections (overly simplified explanation). Here as some links to help you get started (some are desktop but the concept is the same). http://msdn2.microsoft.com/en-us/library/system.net.sockets.aspx http://msdn2.microsoft.com/en-us/library/xt2x8705.aspx http://www.codeguru.com/Csharp/Csharp/cs_network/sockets/article.php/c7695/ http://search.live.com/results.aspx q=c%23+socket+server+multiple+requests&mkt=en-CA&form=QBRE ...Show All
mpetanovitch Error while debuging
Hello All, I am new to Smart Device Development, I have installed Windows Mobile 5.0 Pocket PC SDK on my machine and trying in create simple HelloWorld application but it not working . I gote following error while debuging Error 1 - Deployment and/or registration failed with error: 0x8973190e. Error writing file '%csidl_program_files%\helloworld\mscorlib.dll'. Error 0x80070070: There is not enough space on the disk. File - Device Connectivity Component please help me. I am using Visual Studio 2005 One More thing, I don't have 'Smart Device' like interface when I open WinForm in design view for placing controls. Thanks If you create WinCE application than you'll see WinForm style skin. This is because WinCE based device ...Show All
kevin D. white genasm error message when adding DesignTimeAttributes.xmta to my project
This is weird. I have a Smart Device C# library that builds perfectly. When I add a DesignTimeAttributes.xmta to it and rebuild it I got the following error message: genasm.exe(1) : error There was an error finalizing type . Type 'MyNameSpace.MyClass, MyLibrary, Version=9.2.0.0, Culture=neutral, PublicKeyToken=null' was loaded in the ReflectionOnly context but the AssemblyBuilder was not created as AssemblyBuilderAccess.ReflectionOnly. My Namespace is MyNameSpace. My library is called MyLibrary. I have tried to reproduce it on a small project and I can't. I will keep trying to see if I can narrow it down. Thanks in advance for helping. Hi Frederic - we have been able to repro this problem. This repro for this issue is simple a ...Show All
Charles Tam Device Emulator Crashes after getting connected to Active Sync 4.5 Beta
Hi, Following is the description of the problem. 1. We've installed Device Emulator from http://www.microsoft.com/downloads/details.aspx FamilyID=c62d54a5-183a-4a1e-a7e2-cc500ed1f19a&DisplayLang=en location. 2. We are using ActiveSync 4.5 for connecting this device emulator. 3. The moment we connect it, teh device Emulator crashes. 4. In other scenario, the Device Emulator works fine but after some time it crashes. Can anyone help why this may be happening Thanks Mukhtar Can you send me some specifics about the crash A register dump plus callstack would be great. If you're not sure how to do this, please let me know. Also, to get unblocked, you might try the V2 Communi ...Show All
