🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #7149

Re: How to generate GUID number within an BCB6 build apps?

#7149
From: Lee
Date: Tue, 08 Mar 2005 06:41
31 lines
1715 bytes
It seems to be tht I do not have the  header file "rpcde.h" .
Where from I should get it ?

>> How can I generate Globally Unique IDentifier (GUID) number in my 
>> application? Is there any API for this? Any example?.
>
> Another way :
>
> #include <rpcde.h>
>
> UUID uuid;
> HRESULT hr = UuidCreateSequential(&uuid);
> if (hr == RPC_S_OK)
> {
>    unsigned char *buf;
>    hr = UuidToString(&uuid, &buf);
>    if (hr == RPC_S_OK)
>    {
>       std::cout<<buf<<std::endl;
>       RpcStringFree(&buf);
>    }
> }
>
> Michel
> -- 
> ----------------------------------------
> Michel Leunen
> mailto: see my homepage.
> C++Builder, BCC5.5.1 Web site:
> http://www.leunen.com/
> ---------------------------------------- 
Technical Details
Message-ID: <422d4cd0@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeder.wxs.nl!newsfeed.multikabel.nl!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <422c671a$1@newsgroups.borland.com> <422ca8dd$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
From: <Lee>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <422c671a$1@newsgroups.borland.com> <422ca8dd$1@newsgroups.borland.com>
Subject: Re: How to generate GUID number within an BCB6 build apps?
Date: Tue, 8 Mar 2005 17:41:39 +1100
Lines: 33
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: 211.30.60.151
Message-ID: <422d4cd0@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1110265040 211.30.60.151 (7 Mar 2005 22:57:20 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeder.wxs.nl!newsfeed.multikabel.nl!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail