 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Malte Persike Guest
|
Posted: Thu Feb 19, 2004 7:43 pm Post subject: How to assign a GUID to a TGUID constant |
|
|
Hi everybody,
I am developing a component and want to provide some interfaces to it.
BCB6 allows - as well as the Delphi IDE - for creating a GUID by
pressing Shift-Ctrl-G.
What BCB6 then creates does look like this:
['{12345678-9ABC-DEF1-2345-6789ABCDEF12}']
For testing purposes I'd like to do the following:
const TGUID = ['{12345678-9ABC-DEF1-2345-6789ABCDEF12}'];
Obviously, this will not compile, at least because of the Delphi-style
single quotes. Chaning them into double colons does not work either.
My question: How do I assign a manually created GUID to a TGUID
variable?
Kind regards,
Malte
--
The above e-mail address is not valid. To
contact me, please use my real e-mail address:
malte AT t DASH online DOT de
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Thu Feb 19, 2004 8:30 pm Post subject: Re: How to assign a GUID to a TGUID constant |
|
|
"Malte Persike" <me (AT) privacy (DOT) net> wrote
| Quote: | const TGUID = ['{12345678-9ABC-DEF1-2345-6789ABCDEF12}'];
|
You need to convert the generated string into actual numeric values instead:
const TGUID MyGuid = {0x12345678, 0x9ABC, 0xDEF1, {0x23, 0x45, 0x67,
0x89, 0xAB, 0xCD, 0xEF, 0x12}};
Gambit
|
|
| Back to top |
|
 |
Malte Persike Guest
|
Posted: Thu Feb 19, 2004 11:50 pm Post subject: Re: How to assign a GUID to a TGUID constant |
|
|
On Thu, 19 Feb 2004 12:30:33 -0800, "Remy Lebeau (TeamB)"
<gambit47.no.spam (AT) no (DOT) spam.yahoo.com> wrote:
| Quote: |
"Malte Persike" <me (AT) privacy (DOT) net> wrote in message
news:d14a30l3uocee3cirpiiivf5in34fg1j00 (AT) 4ax (DOT) com...
const TGUID = ['{12345678-9ABC-DEF1-2345-6789ABCDEF12}'];
You need to convert the generated string into actual numeric values instead:
const TGUID MyGuid = {0x12345678, 0x9ABC, 0xDEF1, {0x23, 0x45, 0x67,
0x89, 0xAB, 0xCD, 0xEF, 0x12}};
Gambit
|
Works. Thank you very much!
Question is why Borland did not bother "localizing" the Delphi IDE
feature to BCB.
Kind regards,
Malte
--
The above e-mail address is not valid. To
contact me, please use my real e-mail address:
malte AT t DASH online DOT de
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Fri Feb 20, 2004 12:51 am Post subject: Re: How to assign a GUID to a TGUID constant |
|
|
"Malte Persike" <me (AT) privacy (DOT) net> wrote
| Quote: | Question is why Borland did not bother "localizing"
the Delphi IDE feature to BCB.
|
What do you mean?
Gambit
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|