GuidToString (C++)
Description
The following example builds a GUID and displays it in a dialog box after translating it to a string.
Code
#include <ActiveX.hpp>
#include <ComObj.hpp>
#include <Sysutils.hpp>
void __fastcall TForm1::Button1Click(TObject *Sender)
{
TGUID g;
OleCheck(CoCreateGuid(&g));
ShowMessage(Sysutils::GUIDToString(g));
}
Uses
- System.SysUtils.GUIDToString ( fr | de | ja )
- System.Win.ComObj.OleCheck ( fr | de | ja )