Article View: borland.public.cppbuilder.nativeapi
Article #7144Re: How to generate GUID number within an BCB6 build apps?
From: Sam S. Firouz
Date: Mon, 07 Mar 2005 17:56
Date: Mon, 07 Mar 2005 17:56
15 lines
1404 bytes
1404 bytes
#include <ComObj.hpp>
AnsiString __fastcall GetAGuid (void)
{
System::TGUID g;
OleCheck (CoCreateGuid (&g));
return (Sysutils::GUIDToString (g));
}
Sam
<Lee> wrote in message news:422c671a$1@newsgroups.borland.com...
> How can I generate Globally Unique IDentifier (GUID) number in my
> application? Is there any API for this? Any example?.
>
Technical Details
Message-ID:
<422c949a@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!news-zh.switch.ch!irazu.switch.ch!switch.ch!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<422c671a$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e0e77bbefc54c2e9 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Sam S. Firouz" <sfirouz@Hotmail.com> From: "Sam S. Firouz" <sfirouz@Hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <422c671a$1@newsgroups.borland.com> Subject: Re: How to generate GUID number within an BCB6 build apps? Date: Mon, 7 Mar 2005 12:56:54 -0500 Lines: 17 Organization: F. C. C. X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 132.250.186.165 Message-ID: <422c949a@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1110217882 132.250.186.165 (7 Mar 2005 09:51:22 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!news-zh.switch.ch!irazu.switch.ch!switch.ch!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail