Windows Phone Thoughts - Daily News, Views, Rants and Raves

Check out the hottest Windows Mobile devices at our Expansys store!


Digital Home Thoughts

Loading feed...

Laptop Thoughts

Loading feed...

Android Thoughts

Loading feed...




Go Back   Thoughts Media Forums > WINDOWS PHONE THOUGHTS > Windows Phone Developer

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-20-2004, 06:30 PM
Kris Kumar
Editor Emeritus
Kris Kumar's Avatar
Join Date: Aug 2006
Posts: 5,074
Default Need A GUID In A Hurry?

http://blog.opennetcf.org/pfoot/PermaLink.aspx?guid=296990fd-10ee-4c56-a9d6-d60d7716c1f6

"There may be times in your application you need to generate a new unique Guid. The System.Guid class in .NETCF v1.0 doesn't have the NewGuid method which is what you would normally use on the desktop. There are a couple of proposed alternatives, either generating one yourself by following the standards for Guids - using a few P/Invokes to Crypto API methods to get random numbers, using the GuidEx class which uses the same technique or indirectly using SqlCe to create a new identity value."

Peter Foot in his blog has provided an easy way to generate a GUID, which involves only a single P/Invoke call to one of the COM subsystem API methods. So in case you need a GUID in a hurry, you now know where to look. :-)
 
Reply With Quote
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Propblem with the Zune tonster91 Zune Hardware 7 07-30-2007 10:55 PM
Last 48 hrs of Massive Sale - Hurry To PDATopSoft.com! Hedge Windows Phone Announcements 0 01-05-2007 06:07 PM


All times are GMT +1. The time now is 02:23 AM.