Updated Version of DP4DYN - E4000014 - 01 Sep 2000 (updated 14 Nov 2000)
The issued source code for DP4DYN was previously very out of date, especially with regard to Visual Basic and C++ programs. This updated release incorporates up to date code for the C++ DP4CLASS interface, and a small VB6 example. The .DOC files have also been updated. You are recommended to read these, as they contain useful information on using LIBMAKE with DP4DYN.
C++ Changes
The new dp4class source code is a tidied up version of the code which we use internally in programs such as MAPEDIT and in our retail products. There are many changes:
- The source code uses dp4clx.h (supplied) in place of stdafx.h. Feel free to change this back if you wish.
- There is support for error handling using structured exception handling rather than error return codes.
- The DP4Table and DP4Field classes have many new methods, in particular there are methods which avoid the need to have to specify a database for every database access call. Also the previously overloaded function names SetDP4String(),SetDP4Date(),SetDP4Time() have been split into two functions e.g. SetDP4String() and GetDP4String(). This has been done to enhance readability. The old names continue to work via inline overloaded functions, but you are recommended to update code.
- The functions used by the current version of MAPEDIT to access the DP4 data dictionary are included. Please note that there is no support available for these functions. Feel free to adapt this code for your own purposes, but be aware that as MAPEDIT is slated for a complete rewrite these functions are liable to be changed or removed in future releases.
VB Changes
There is a new module dp4dyn32.bas, which is a replacment for the old dp4dyn.bas used in 16 bit programs. There is a small example VB project which illustrates how to access a DP4 database via DP4DYN32.DLL in a VB6 program.
Please note the following important points:
- In order to access DP4 databases from VB6, the database MUST use number system 9. If not the data will not be aligned properly and you will not be able to read it correctly.
- When using LIBMAKE specify #vb32 and not #vb. You will probably want to download fix K4000020 which has a fix relevant to VB.
- Consider using DP4 ODBC rather than DP4DYN to access DP4 databases from Visual Basic
- 14 Nov 2000. dp4dyn32.bas has been updated to fix a problem with the declaration of date and time types. These types now use byte fields rather than single character strings. There are also some other minor changes to facilitate using this module in VB projects.
For further information please read the updated DP4DYN.DOC.
DP4 Version Compatibility
4.5xx,4.6xx
Beta software is supplied without warranty and should not be used in live sites
without the agreement of Itim Technology Solutions. Compatibility with an eventual final
release cannot be guaranteed.
Downloads
Beta 4.522/4.618 DP4DYN package (This package comes with an optional Install program)
Help file for DP4DYN