DTX - Database Toolbox For MFC Ver 1.8 (Freeware Version)






3.88/5 (8 votes)
Apr 3, 2002
4 min read

107041

3612
DTX is a set of classes for editing and automatic read, write and display of datatabase fields, as well as 70+ ready to use classes
Introduction
What is This
DTX is a set of classes for editing and automatic read, write and display of datatabase fields. DTX provides automatic read and write of Blob variables (for example. Read and write DBImage). It's very easy to use. Version 1.8 is only for use with MS Access Databases, but is not designed only for Access tables. It includes 70+ ready to use classes.
Features
- Very easy to use
- automatic reading, writing Field values
- automatic read, write blob fields
- automatic reading, writing DBImages
- Uses Normal and Calculated Fields
- automatic updating of screen data
- Uses standard windows (C<xxx> Classes) and colored and shadowed (CDTX<xxx> classes) controls
Classes
CACEditCtrl
- Auto Complete Edit (Based On James R. Twine'sCACEditCtrl
)CCalculatorCombo
,CDTXCalculatorCombo
andCCalulatorDlg
(Only Ver 1.5) Popup Calculator and Calculator dialogCFlatComboBox
,CJFlatButton
(Copyright Kirk Stowell)CDate
,CComboDate
,CListBoxDate
(Copyright MORIN Jean-Marc, Only in Ver 1.5)CDaoTableCreator
- *.MDB Database creatorCDBCheckBox
a Control for Bool fieldsCDTXComboBox
,CDBComboBox
,CDTXDBComboBox
, for String and Integer fieldsCDBCurrencyEdit
,CDTXDBCurrencyEdit
, for Currency FieldsCDTXEdit
,CDBEdit
,CDTXDBEdit
, for general fieldsCDTXImage
,CDBImage
,CDTXDBImage
, for LongBinary ImagesCDBListCtrl
,CDTXDBListCtrl
, for Listing (Derived from Maarten Hoeben'sCReportCtrl
, Only in Ver 1.5)COXMaskedEdit
,CDBMaskedEdit
,CDTXDBMaskedEdit
, for general fields (Copyright and Derived From DundasCOXMAskedEdit
)-
CDBNavigator
a Record Navigator like MSDBNavigator
-
CDTXLabel
CNumericEdit
,CDBNumericEdit
,CDTXDBNumericEdit
, for Numerical fields (Derived From Corey Spagnoli's pastable Numeric edit ctrl)- CFlatACComboBox, CDTXSACComboBox Auto Complete ComboBox
CReportCtrl
,CDTXReportCtrl
,CDBListCtrl
,CDTXDBListCtrl
(Derived from Maarten Hoeben'sCReportCtrl
)CDTXTable
a base class for Access a database systemCDTXDAOTable
a class for Acces MS Access DatabasesCLabel
(Copyright NT ALMOND)CDBLabel
(Derived from CLabel)CRicheditex
(Copyriight AndrewFo) andCAutoRicheditCtrl
(with Richedit 2.0)CDBRichEdit
andCDTXDBRichEdit
CDateWnd
,CPopupDate
CDBDateCombo
,CDTXDBDateCombo
,CDBListBoxDate
,CDTXDBListBoxDate
CDTXDBACEdit
-
CDBCalculatorCombo
,CDTXDBCalculatorCombo
- and helper classes and procedures
Demos
- Label Demo
- Edit Demo
- Image Demo
- ComboBoxes Demo
-
Database Demo
- Background (Read Write Blob Demo)
- My Friends (Read DtxField Value)
- Employee (Sample Database App)
- My Programs (My other Freeware and Shareware Programs)
- New Controls Ver. 1.5 Controls demo
Screen ShotsLabel Demo |
Edit Demo | Image Demo | Combo Demo |
![]() |
![]() |
![]() |
![]() |
Back Ground Demo | My Friends | Employee | My Programs |
![]() |
![]() |
![]() |
![]() |
How to Use
Unzip DTX Files any directory. Run Visual Studio. Go "Tools" Menu and Select "Options". Click on "Directories" Tab and Add DTX Directory for "Include Files" and "Library files"(use "Show Directories for" combobox). Now we added DTX path to Visual Studio. Now we are design DTX Background demo
- Now create a new project. For ex. Dialog Based and
Name is "
CTestDlg
". - Go "View" Menu and select "Resource Includes". Add "
#include <dtxlib.rc>
" line at "Read-only symbol directives" Listbox. - Open "Stdafx.h" and add "
#include <dtx.h>
" line. - Press Alt+F7 and open then "Project Settings"
- Select the "Link" tab
- Select the "Object/Library Modules" edit box and type "DTXLibDbg.lib" (debug version at the Win32 Debug)
- Click "OK" Okay now add DTX to my project.
- Design your dialog.
- Right Click On yor dialog (CTestDlg) at "Project Workspace". Click "Add Member Variable"
- Type "
CDTXDAOTable
" in "Variable Type" editbox and Type "m_Table
" in "Variable Name" editbox - Go
CTestDlg::CTestDlg
and change The ":CDialog(CTestDlg::IDD, pParent)
" line to :CDialog(CDenemeDlg::IDD, pParent), m_Table(NULL, _T("C:/Test/DTX.mdb"), _T("Background"))
" (NULL
= parent Wnd of Table, c:/test/dtx.mdb is main db file, Background is my Table Name) - Press Ctrl+W and Open Classwizard
- Click "Member Variables" Tab
- Select "
IDC_EDIT1
" and click "Add Variable" Button ( The IDC_xxx may be different) - choose a name. Click "OK" (for ex.
m_Name
) (Note: Category must be "Control") - Try 10-11 number for all Fields
- At the "Project Workspace" click "
m_Name
" - Change the Type
CDTXDBEdit
(may be another class for ex.CDTXDBImage
,CDBNavigator
, etc...) - Try 13-14 for the all fields ( For ex
DBNavigator
) - Go "
CTestDlg::OnInitDialog()
" (OnInitialUpdate
forCFormView
) - If required add "
m_Table.SetTableName
(<Your DB File Path and Name>));"
(may be "m_Table.SetTableName(_T("c:/test/DTX.MDB"));
" - Add "
m_Table.SetOwner(this);
" line - Add "
m_Name.SetFieldName(_T("PicName")); (m_Name.SetFieldName(_T("<Field Name>"));
- Add "
m_Name.SetTable(&m_Table);
" line - Try 19-20 for all fields
- Add "
m_Table.Opentable();
" Line and open the table - Compile and run
- Thats all .
Future Plans
- DBGrid (Finished but under test)
CTXADOTable
(ADO Interface - Finished under test)- Interface for other Database Systems (Oracle, MS SQL, MySQL, Postgre, Gigabase, etc...)
- Reporting Tool (Designer and Viewer)
- Memory Table
Important Notice
- Thanks for using DTX
- All 3rd party components copyrighted by authors and found in Code Project and Code Guru
- DTX is not Designed for only MS Access Tables
- Visit my WEB Site for other Freeware and Shareware programas
- Please send me email or ICQ Message (UIN= 57653356) for updates and questions