Click here to Skip to main content
16,005,682 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCLSID's Pin
#realJSOP13-Oct-01 4:42
professional#realJSOP13-Oct-01 4:42 
GeneralRe: CLSID's Pin
NormDroid13-Oct-01 5:23
professionalNormDroid13-Oct-01 5:23 
GeneralRe: CLSID's Pin
#realJSOP13-Oct-01 5:31
professional#realJSOP13-Oct-01 5:31 
GeneralRe: CLSID's Pin
#realJSOP13-Oct-01 5:38
professional#realJSOP13-Oct-01 5:38 
GeneralRe: CLSID's Pin
#realJSOP13-Oct-01 6:19
professional#realJSOP13-Oct-01 6:19 
GeneralRe: CLSID's Pin
Anders Molin13-Oct-01 12:01
professionalAnders Molin13-Oct-01 12:01 
GeneralRe: CLSID's Pin
#realJSOP13-Oct-01 13:21
professional#realJSOP13-Oct-01 13:21 
GeneralRe: CLSID's Pin
Michael Dunn13-Oct-01 7:45
sitebuilderMichael Dunn13-Oct-01 7:45 
but I always want the first 4 sections (best case) to be the same

No, because that's not how GUIDs are defined. The first 10 bytes are a counter (number of 100ns intervals since some date long in the past, plus some other stuff to account for daylight savings time changes) and the last 6 bytes are the computer's MAC address (or a synthesized number for machines w/o a network card). So you must not change the last 6 bytes on your own or you risk duplicating a GUID made on another machine.
If you can change your requirements so that the first part can be incremented, that's ok. You could then have:

51eb18c0-98a7-11d1-83d1-f46705c10000
51eb18c1-98a7-11d1-83d1-f46705c10000
51eb18c2-98a7-11d1-83d1-f46705c10000

and so on. (This is what the Guidgen util does, BTW.)

--Mike--
http://home.inreach.com/mdunn/
"The Earth is doomed." -- Rupert Giles
Heart | [heart] your Green Alien | [Alien] with Good Stuff | [The good stuff] and Beer | [beer]
GeneralRe: CLSID's Pin
#realJSOP13-Oct-01 11:00
professional#realJSOP13-Oct-01 11:00 
GeneralRe: CLSID's Pin
Christian Graus13-Oct-01 11:22
protectorChristian Graus13-Oct-01 11:22 
GeneralRe: CLSID's Pin
Anders Molin13-Oct-01 12:06
professionalAnders Molin13-Oct-01 12:06 
GeneralRe: CLSID's Pin
#realJSOP14-Oct-01 4:17
professional#realJSOP14-Oct-01 4:17 
GeneralRe: CLSID's Pin
Anders Molin14-Oct-01 4:24
professionalAnders Molin14-Oct-01 4:24 
GeneralRe: CLSID's Pin
#realJSOP14-Oct-01 7:05
professional#realJSOP14-Oct-01 7:05 
GeneralRe: CLSID's Pin
Anders Molin14-Oct-01 7:09
professionalAnders Molin14-Oct-01 7:09 
GeneralRe: CLSID's Pin
Anders Molin14-Oct-01 7:21
professionalAnders Molin14-Oct-01 7:21 
GeneralRe: CLSID's Pin
#realJSOP15-Oct-01 5:13
professional#realJSOP15-Oct-01 5:13 
GeneralVariable Init Pin
13-Oct-01 0:48
suss13-Oct-01 0:48 
GeneralRe: Variable Init Pin
NormDroid13-Oct-01 2:13
professionalNormDroid13-Oct-01 2:13 
GeneralThanks Pin
13-Oct-01 2:20
suss13-Oct-01 2:20 
GeneralRe: Thanks Pin
Sijin13-Oct-01 2:27
Sijin13-Oct-01 2:27 
GeneralRe: Variable Init Pin
Sijin13-Oct-01 2:25
Sijin13-Oct-01 2:25 
GeneralADO/ADOX Hell Pin
Christian Graus12-Oct-01 19:59
protectorChristian Graus12-Oct-01 19:59 
GeneralRe: ADO/ADOX Hell Pin
Christian Graus13-Oct-01 1:24
protectorChristian Graus13-Oct-01 1:24 
QuestionHow can I make an arbitrary row from a simple CListBox unselectable, but still viewable? Pin
DanYELL12-Oct-01 11:44
DanYELL12-Oct-01 11:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.