by IDEAL Software Support » Tue Jul 28, 2009 2:00 am
With VPE v4.0, released in August 2007, we also did release versions for Linux, Mac OS X and Solaris. This forced us to implement our own font rendering system to gain consistent layout across all platforms.
To make your old v3.x source code compatible with VPE v4.0 and higher, you need to insert two lines of code:
VPE.UnitTransformation = VUNIT_FACTOR_MM10
VPE.EngineRenderMode = VENGINE_RENDER_MODE_VER3
In addition, all coodinates supplied to the VPE API are now of type double instead of long. And the type of all handles has been changed from long to VpeHandle. The VpeHandle type is typedef'd as a void pointer, which is a 32-bit integer on 32-bit platforms and a 64-bit integer on 64-bit platforms.
The new internal coordinate system now has a precision of 1/10.000 mm.
Lastly, due to the new internal coordinate system, the values of the V-Flags needed to be changed. If you have always used the V-Flags in your source code, then you need nothing to do, but recompile your program. If you have used constant values like -1 instead of VFREE, then you need to change your source code. If you change it, you should start using the V-Flags.