MKI_STRxxxW (API Types) Changed in Version 2020.0

www.CAD6.com

C++ Syntax

typedef wchar_t MKI_FILENAMEW[MAX_PATH],

                MKI_DUMMYSTRW[MAX_PATH + MKI_LENGTH_TEXT_SHORT],

                MKI_STR8W    [8],

                MKI_STR16W   [16],

                MKI_STR32W   [32],

                MKI_STR64W   [64],

                MKI_STR128W  [128],

                MKI_STR256W  [256],

                MKI_STR512W  [512],

                MKI_STR1024W [1024],

                MKI_STR2048W [2048],

                MKI_STR4096W [4096],

                MKI_STR8192W [8192],

                MKI_STR16384W[16384],

                MKI_STR32768W[32768];

 

typedef wchar_t MKI_STRSHORTW  [MKI_LENGTH_TEXT_SHORT + 4],

                MKI_STRSHORTWx2[MKI_LENGTH_TEXT_SHORT*2 + 4],

                MKI_STRSHORTWx3[MKI_LENGTH_TEXT_SHORT*3 + 4],

                MKI_STRSHORTWx5[MKI_LENGTH_TEXT_SHORT*5 + 4],

                MKI_STRLONGW   [MKI_LENGTH_TEXT_LONG + 4];

 

typedef MKI_STR32W  MKI_ATTRIBUTENAME;

typedef wchar_t     MKI_ATTRIBUTEVALUE[MKI_LENGTH_ATTRIBUTE + 4];

typedef MKI_STR256W MKI_BLOCKNAME;

typedef MKI_STR32W  MKI_COLORNAME;

typedef MKI_STR256W MKI_COMMENTLONG;

typedef MKI_STR64W  MKI_COMMENTSHORT;

typedef MKI_STR64W  MKI_COLUMNNAME;

typedef MKI_STR64W  MKI_COLLECTIONNAME;

typedef MKI_STR64W  MKI_DATABASENAME;

typedef MKI_STR256W MKI_FILEREFERENCE;

typedef MKI_STR64W  MKI_FONTNAME;

typedef MKI_STR64W  MKI_HATCHNAME;

typedef MKI_STR64W  MKI_ITEMNAME;

typedef MKI_STR256W MKI_LAYERNAME;

typedef MKI_STR64W  MKI_LIBRARYNAME;

typedef MKI_STR64W  MKI_LINENAME;

typedef MKI_STR64W  MKI_PAGENAME;

typedef MKI_STR256W MKI_PENNAME;

typedef MKI_STR64W  MKI_TASKNAME;

typedef MKI_STR64W  MKI_SELFILTERNAME;

typedef MKI_STR64W  MKI_SYSTEMNAME;

typedef MKI_STR32W  MKI_VARIABLENAME;

typedef wchar_t     MKI_VARIABLEVALUE[MKI_LENGTH_VARIABLE + 4];

 

Element Description

For a description, see your C++ or Win32/x64 documentation. The text lengths defined above are standard text lengths that are frequently used inside other structure definitions.

 

MKD Syntax

The data type MKI_STRxxxW is used to store 16-bit Unicode texts of variable length. Inside this documentation, a numeric value will usually be appended to the data types' name, indicating the maximum length allowed, e.g. MKI_STR64W for a text that may be up to 64 characters long including the terminating null character (0x0000). Typical lengths are 32, 64, and 256 characters, the maximum length of a text is MKI_LENGTH_TEXT_LONG characters.

 

Since MKD files always use the 8-bit UTF-8 characters set (since Version 2019.1) or the 8-bit Ansi character set (until Version 2019.0), texts in those files are represented as an 8-bit character string delimited by the character " (Ansi 34). To be able to use the character '"' inside of texts, the standard C++ text encoding is used: The character " is to be replaced by \" (Ansi 92 34), a single \ (Ansi 92) by \\ (Ansi 92 92). This has to be decoded when reading texts from MKD files!

 

Please note that until Release 2019 SP0, the CAD6interface only supported the 8-bit Ansi character set, no Unicode (except for the element CharPtr in ENUMDEF_DATA)! Starting with Release 2019 SP1, the CAD6interface was converted to 16-bit UTF-16 Unicode characters set.

 

CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH