Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #6469
| From | "Jozo" <racunalo@os.t-com.hr> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Globally Unique Identifier |
| Date | 2014-01-09 00:38 +0100 |
| Organization | T-Com |
| Message-ID | <laknic$koc$1@ls237.t-com.hr> (permalink) |
| References | <laju7s$5c8$1@ls237.t-com.hr> <nk6rc99i6ffio6e7ftkfugns81hkms67be@4ax.com> |
Thanks both, Karl and Urs. You helped me a lot. Jozo "Karl Faller" <mail_withoutthat_@_drei-f_andthat_.de> wrote in message news:nk6rc99i6ffio6e7ftkfugns81hkms67be@4ax.com... > Jozo, >>Does anyone has function or method for Globally Unique Identifier ? > About a year ago you already asked and Willie wrote: >>>>>>>>>>>>>> > Jozo, > In order to create a GUID, you have to have the dll definition. That > is why > you are getting an error message saying that the function in unknown. > > Regards, > Willie > Vulcan VIP > > _DLL FUNCTION CoCreateGuid( p AS _winGuid ) AS LONG > PASCAL:OLE32.CoCreateGuid > > (pls as a one liner!!) > > > > "Jozo" wrote in message news:kbffli$t8s$1@ls237.t-com.hr... > > Hello all, > > I have the function for creating UniqueKey for that the compiler > signalizes > next error: > "Entity CoCreateGuid is unkonwn, bad function call " > The problem is in next code: > hr := CoCreateGuid(@GUID_New) > > Can somebody help me with correctly function or any correctly solution > ? > I work with Vo27b 2740, Windows XP. Thanks in advance. > > Jozo > > Source of function: > > FUNCTION CreateaUniqueKey AS STRING PASCAL > LOCAL Guid_New IS _winGuid > LOCAL hr AS LONG > LOCAL lpBuffer AS PSZ > LOCAL sGuid AS STRING > hr := CoCreateGuid(@GUID_New) > lpBuffer:= MemAlloc(255) > hr := StringFromGUID2( @Guid_new , lpBuffer, 255) > sGuid := Mem2String(lpBuffer, hr*2) // Unicode: char = 2 bytes > MemFree(lpBuffer) > sGuid := Wide2Multi(sGuid) // Undocumente in VO runtime > RETURN sGuid > <<<<<<<<<<<<<<<<<<<< > > HTH > Karl >
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Globally Unique Identifier "Jozo" <racunalo@os.t-com.hr> - 2014-01-08 17:26 +0100
Re: Globally Unique Identifier Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2014-01-08 20:00 +0100
Re: Globally Unique Identifier "Jozo" <racunalo@os.t-com.hr> - 2014-01-09 00:38 +0100
Re: Globally Unique Identifier "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2014-01-08 22:30 +0100
Re: Globally Unique Identifier Mathias <mathias.hakansson@consultec.se> - 2014-01-08 22:09 -0800
csiph-web