VCOM:VWIID: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
(No difference)
|
Revision as of 15:09, 12 August 2013
.SDK|SDK ..SDK:Types|SDK Types ..VCOM:VCOM (Vectorworks Component Object Model)|VCOM Basics ..VCOM:Class Reference|VCOM Class Reference
What is this?
This is a structure that represents 16 byte or 128 bit number. In general this is GUID (Globally Unique Identifier) or UUID (Universal Unique Identifier)
It is used to uniquely identify a VCOM interface.
Note! The VWUUID once generated it is unique and no one else will create the same identifier ever.
There is a build-in tool "Create GUID" in Microsoft(r) VisualStudio that generates GUIDs: http://msdn2.microsoft.com/en-us/library/aa475087.aspx
On Mac, one can use the command line tool uuidgen to generate a UUID (in a slightly different presentation however).
struct VWIID { unsigned long data1; unsigned short data2; unsigned short data3; unsigned char data4[8]; VWIID& operator=(const VWIID& iid) { memcpy( this, &iid, sizeof(VWIID) ); return *this; } bool operator==(const VWIID& iid) const { return memcmp( this, &iid, sizeof(VWIID) ) == 0; } };
Sample of defining VWIID constant:
static const VWIID IID_VCOMSample = { 0xb5706042, 0xbf87, 0x4cff, { 0x9b, 0xd9, 0x3a, 0x8, 0xb0, 0x1c, 0x18, 0x3c } };