Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi!

How can I include Compass functionality in a program for a hand held device using C#.NET CF?
Posted
Updated 6-Feb-11 21:58pm
v4

If the device you're targeting has GPS you could use that for compass functionality. For ideas you might find this helpful: http://www.cjcraft.com/blog/2008/06/04/30DaysOfNETWindowsMobileApplicationsDay03GPSCompass.aspx[^]
Since the link to the code download is kind of hare to find here it is: http://www.cjcraft.com/blog/ct.ashx?id=ec8761dd-a8df-40b2-a1b7-4d38600a658d&url=http%3a%2f%2fcid-0779b8ef58de4561.skydrive.live.com%2fself.aspx%2fPublic%2fGPSCompass.zip[^]

Best Regards,
Manfred
 
Share this answer
 
Comments
Espen Harlinn 7-Feb-11 15:12pm    
Good links :)
If you mean "How can I write a compass program for .NET Compact Framework in C#?" then it will depend on whether the device can support it in hardware at all (Windows Phone does) and how good you are at interop programming: compass support is not included in the current version: http://social.msdn.microsoft.com/Forums/en-US/windowsphone7series/thread/adf69ffd-b512-4177-8733-c6256d4439df/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900