12-29-2008 04:08 PM
Hi
Does anybody know how to generate a GUID in LabVIEW?
Or from a command shell or dll.
regards
Richard
12-29-2008 05:54 PM
Hi Richard,
Do you want LabVIEW to generate a GUID for you? I thought that a GUID is a pseudo-random 128-bit number that is computed by Windows and Windows applications in order to identify any component in the computer that requires a unique number. Why do you need a command shell or dll? A better explanation of what exactly you want to do over here would be helpful.
12-29-2008 06:09 PM
Hi,
I'm executing a series of stored procedure (MS SQL).
A lot of these store proc's have relations (the prim key use GUID).
I know it is possible to get the GUID from the MS SQL Server, but it is time-consuming.
I have tried the GUIDGen (from Microsoft), but that was a Windows app. I need to get the GUID at run-time. That is why I asked for a dll or shell
regards
Richard
12-29-2008 06:16 PM
Yes, you can make a call to ole32.dll. This is what you are looking for: GUID generation. They have provided an example for LabVIEW and C.
12-30-2008 02:26 AM
Hi Adnan,
Thanks!
Regards
Richard