I defined some structures in C++ for vector fonts.
Just to help You understand the coherences I'm adding the
whole bunch of definitions.
Only two of them including pointers seem to be difficult
to translate to PB because one contains a reference of the other.
How do You think have I to translate it?
Norbert
------------------
Socialism only for people owning everything.
Norbert Doerre
Just to help You understand the coherences I'm adding the
whole bunch of definitions.
Only two of them including pointers seem to be difficult
to translate to PB because one contains a reference of the other.
Code:
// structures for MCF font records struct MCFHeader { BYTE bVersion; char szFont[33]; short nChars; }; struct MCFCharRecord { BYTE ch; short bFillable; fPoint2D fpMin; fPoint2D fpMax; }; 'Start of difficulties: '====================== typedef struct tagMyCharRecord* PMyCharRecord; typedef struct tagMyEntityRecord* PMyEntityRecord; typedef struct tagMyCharRecord { BYTE ch; BOOL tfDefined; short bFillable; fPoint2D fpMin, fpMax; short nEntities; PMyEntityRecord pLast; PMyEntityRecord pNext; } MyCharRecord; typedef struct tagMyEntityRecord { BYTE bKind; short nPoints; fPoint2D* Points; PMyEntityRecord pNext; } MyEntityRecord; 'End of difficulties '=================== // defines #define ENDOFCHAR 99 // end-of-character marker for MCF #define MAXREAL (FLOAT)(1.0e+38)
Norbert
------------------
Socialism only for people owning everything.
Norbert Doerre
Comment