Files
harbour-core/harbour/examples/hbsqlit2
Przemyslaw Czerpak aec5ed2ce6 2009-07-08 18:22 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbtask.h
 * harbour/source/vm/maindllh/Makefile
 * harbour/source/vm/task.c
 * harbour/source/vm/hvmall.c
 * harbour/source/rtl/cputime.c
 * harbour/contrib/hbmysql/hbmysql.hbc
 * harbour/contrib/xhb/xhb.hbc
 * harbour/contrib/xhb/xhberrc.c
 * harbour/contrib/xhb/xhbver.ch
 * harbour/contrib/hbodbc/hbodbc.hbc
 * harbour/contrib/hbtpathy/hbtpathy.hbc
 * harbour/contrib/hbsqlit3/tests/hooks.prg
 * harbour/contrib/hbsqlit3/tests/backup.prg
 * harbour/contrib/hbsqlit3/tests/authoriz.prg
 * harbour/contrib/hbsqlit3/hbsqlit3.hbc
 * harbour/contrib/hbmzip/hbmzip.hbc
 * harbour/contrib/hbqt/QDragEnterEvent.cpp
 * harbour/contrib/hbqt/QWebSecurityOrigin.cpp
 * harbour/contrib/hbqt/QConicalGradient.cpp
 * harbour/contrib/hbqt/TQWidgetItem.prg
 * harbour/contrib/hbqt/QGradient.cpp
 * harbour/contrib/hbqt/TQDropEvent.prg
 * harbour/contrib/hbqt/QStandardItemModel.cpp
 * harbour/contrib/hbqt/TQTextObject.prg
 * harbour/contrib/hbqt/QPicture.cpp
 * harbour/contrib/hbqt/TQStyleHintReturn.prg
 * harbour/contrib/hbqt/QStyledItemDelegate.cpp
 * harbour/contrib/hbqt/QAbstractListModel.cpp
 * harbour/contrib/hbqt/TQFontDatabase.prg
 * harbour/contrib/hbqt/QResource.cpp
 * harbour/contrib/hbqt/TQWebHistory.prg
 * harbour/contrib/hbqt/QMouseEvent.cpp
 * harbour/contrib/hbqt/TQAbstractItemModel.prg
 * harbour/contrib/hbqt/QStyleOptionHeader.cpp
 * harbour/contrib/hbqt/QWheelEvent.cpp
 * harbour/contrib/hbqt/QRadialGradient.cpp
 * harbour/contrib/hbqt/QCursor.cpp
 * harbour/contrib/hbqt/QFocusEvent.cpp
 * harbour/contrib/hbqt/QStyleHintReturn.cpp
 * harbour/contrib/hbqt/QStyleOptionToolButton.cpp
 * harbour/contrib/hbqt/QStylePainter.cpp
 * harbour/contrib/hbqt/QWebPluginFactory.cpp
 * harbour/contrib/hbqt/TQSystemTrayIcon.prg
 * harbour/contrib/hbqt/QLinearGradient.cpp
 * harbour/contrib/hbqt/QDragLeaveEvent.cpp
 * harbour/contrib/hbqt/TQStyleOptionViewItem.prg
 * harbour/contrib/hbqt/QStyleOptionToolBox.cpp
 * harbour/contrib/hbqt/QStyleOptionTabBarBase.cpp
 * harbour/contrib/hbqt/QStringList.cpp
 * harbour/contrib/hbqt/TQStyleOptionTitleBar.prg
 * harbour/contrib/hbqt/TQSound.prg
 * harbour/contrib/hbqt/TQGradient.prg
 * harbour/contrib/hbqt/TQWebSettings.prg
 * harbour/contrib/hbqt/TQApplication.prg
 * harbour/contrib/hbqt/QStyleOptionViewItem.cpp
 * harbour/contrib/hbqt/TQCoreApplication.prg
 * harbour/contrib/hbqt/TQKeySequence.prg
 * harbour/contrib/hbqt/QStyleOptionToolBar.cpp
 * harbour/contrib/hbqt/QStyleOptionTitleBar.cpp
 * harbour/contrib/hbqt/TQResource.prg
 * harbour/contrib/hbqt/QStyleOptionButton.cpp
 * harbour/contrib/hbqt/QSizePolicy.cpp
 * harbour/contrib/hbqt/QWebSettings.cpp
 * harbour/contrib/hbqt/TQStyleOptionSizeGrip.prg
 * harbour/contrib/hbqt/TQStyleOptionGroupBox.prg
 * harbour/contrib/hbqt/TQStylePainter.prg
 * harbour/contrib/hbqt/TQWebPluginFactory.prg
 * harbour/contrib/hbqt/QKeySequence.cpp
 * harbour/contrib/hbqt/QKeyEvent.cpp
 * harbour/contrib/hbqt/QStyleOptionSlider.cpp
 * harbour/contrib/hbqt/TQDragMoveEvent.prg
 * harbour/contrib/hbqt/QWidgetItem.cpp
 * harbour/contrib/hbqt/QStyleOptionSizeGrip.cpp
 * harbour/contrib/hbqt/TQWebHistoryItem.prg
 * harbour/contrib/hbqt/QTextObject.cpp
 * harbour/contrib/hbqt/QStyleOptionGroupBox.cpp
 * harbour/contrib/hbqt/QImage.cpp
 * harbour/contrib/hbqt/QLine.cpp
 * harbour/contrib/hbqt/TQStyleOptionProgressBar.prg
 * harbour/contrib/hbqt/QWebHistory.cpp
 * harbour/contrib/hbqt/TQStyleHintReturnVariant.prg
 * harbour/contrib/hbqt/TQWebSecurityOrigin.prg
 * harbour/contrib/hbqt/TQStyleOptionTab.prg
 * harbour/contrib/hbqt/TQStringListModel.prg
 * harbour/contrib/hbqt/QWebHitTestResult.cpp
 * harbour/contrib/hbqt/TQStandardItemModel.prg
 * harbour/contrib/hbqt/QSystemTrayIcon.cpp
 * harbour/contrib/hbqt/QStyleOptionDockWidget.cpp
 * harbour/contrib/hbqt/TQFileSystemModel.prg
 * harbour/contrib/hbqt/QStyleOptionTabWidgetFrame.cpp
 * harbour/contrib/hbqt/QStyleOptionFocusRect.cpp
 * harbour/contrib/hbqt/QMoveEvent.cpp
 * harbour/contrib/hbqt/TQImageWriter.prg
 * harbour/contrib/hbqt/TQAbstractListModel.prg
 * harbour/contrib/hbqt/QWidgetAction.cpp
 * harbour/contrib/hbqt/TQModelIndex.prg
 * harbour/contrib/hbqt/QStringListModel.cpp
 * harbour/contrib/hbqt/TQKeyEvent.prg
 * harbour/contrib/hbqt/TQStyleOptionMenuItem.prg
 * harbour/contrib/hbqt/TQStyleOptionHeader.prg
 * harbour/contrib/hbqt/QFileSystemModel.cpp
 * harbour/contrib/hbqt/TQWebHistoryInterface.prg
 * harbour/contrib/hbqt/TQStyleOptionComboBox.prg
 * harbour/contrib/hbqt/TQBrush.prg
 * harbour/contrib/hbqt/TQStyleOptionToolButton.prg
 * harbour/contrib/hbqt/QImageWriter.cpp
 * harbour/contrib/hbqt/TQLine.prg
 * harbour/contrib/hbqt/TQAbstractTableModel.prg
 * harbour/contrib/hbqt/TQStyleOptionTabBarBase.prg
 * harbour/contrib/hbqt/QStyleOptionMenuItem.cpp
 * harbour/contrib/hbqt/TQImageReader.prg
 * harbour/contrib/hbqt/QDropEvent.cpp
 * harbour/contrib/hbqt/TQColor.prg
 * harbour/contrib/hbqt/TQStyleOptionComplex.prg
 * harbour/contrib/hbqt/TQWebHitTestResult.prg
 * harbour/contrib/hbqt/QLatin1String.cpp
 * harbour/contrib/hbqt/QStandardItem.cpp
 * harbour/contrib/hbqt/TQLatin1Char.prg
 * harbour/contrib/hbqt/QWebHistoryInterface.cpp
 * harbour/contrib/hbqt/QStyleOptionComboBox.cpp
 * harbour/contrib/hbqt/TQStyleOptionSpinBox.prg
 * harbour/contrib/hbqt/TQPalette.prg
 * harbour/contrib/hbqt/TQResizeEvent.prg
 * harbour/contrib/hbqt/TQStyleOptionFocusRect.prg
 * harbour/contrib/hbqt/QAbstractItemModel.cpp
 * harbour/contrib/hbqt/QImageReader.cpp
 * harbour/contrib/hbqt/TQDragEnterEvent.prg
 * harbour/contrib/hbqt/TQWidgetAction.prg
 * harbour/contrib/hbqt/QWebHistoryItem.cpp
 * harbour/contrib/hbqt/TQStyleOptionButton.prg
 * harbour/contrib/hbqt/QDateTime.cpp
 * harbour/contrib/hbqt/QPalette.cpp
 * harbour/contrib/hbqt/QStyleOptionProgressBar.cpp
 * harbour/contrib/hbqt/QResizeEvent.cpp
 * harbour/contrib/hbqt/TQStyledItemDelegate.prg
 * harbour/contrib/hbqt/QStyleHintReturnVariant.cpp
 * harbour/contrib/hbqt/QList.cpp
 * harbour/contrib/hbqt/QStyleOptionTab.cpp
 * harbour/contrib/hbqt/TQStyleOption.prg
 * harbour/contrib/hbqt/TQMouseEvent.prg
 * harbour/contrib/hbqt/TQStyleOptionSlider.prg
 * harbour/contrib/hbqt/QWebFrame.cpp
 * harbour/contrib/hbqt/QSound.cpp
 * harbour/contrib/hbqt/QDirModel.cpp
 * harbour/contrib/hbqt/TQWheelEvent.prg
 * harbour/contrib/hbqt/TQRadialGradient.prg
 * harbour/contrib/hbqt/QStyleOptionFrame.cpp
 * harbour/contrib/hbqt/TQCursor.prg
 * harbour/contrib/hbqt/TQStandardItem.prg
 * harbour/contrib/hbqt/TQLatin1String.prg
 * harbour/contrib/hbqt/TQFocusEvent.prg
 * harbour/contrib/hbqt/TQImage.prg
 * harbour/contrib/hbqt/TQLinearGradient.prg
 * harbour/contrib/hbqt/TQDragLeaveEvent.prg
 * harbour/contrib/hbqt/QModelIndex.cpp
 * harbour/contrib/hbqt/TQStyleHintReturnMask.prg
 * harbour/contrib/hbqt/QStyleOption.cpp
 * harbour/contrib/hbqt/TQStyleOptionToolBox.prg
 * harbour/contrib/hbqt/TQStringList.prg
 * harbour/contrib/hbqt/hbqt.ch
 * harbour/contrib/hbqt/TQDateTime.prg
 * harbour/contrib/hbqt/TQStyleOptionDockWidget.prg
 * harbour/contrib/hbqt/TQStyleOptionTabWidgetFrame.prg
 * harbour/contrib/hbqt/QFontDatabase.cpp
 * harbour/contrib/hbqt/QAbstractTableModel.cpp
 * harbour/contrib/hbqt/QStyleHintReturnMask.cpp
 * harbour/contrib/hbqt/TQMoveEvent.prg
 * harbour/contrib/hbqt/TQList.prg
 * harbour/contrib/hbqt/TQStyleOptionToolBar.prg
 * harbour/contrib/hbqt/QDragMoveEvent.cpp
 * harbour/contrib/hbqt/TQConicalGradient.prg
 * harbour/contrib/hbqt/QStyleOptionComplex.cpp
 * harbour/contrib/hbqt/TQWebFrame.prg
 * harbour/contrib/hbqt/TQSizePolicy.prg
 * harbour/contrib/hbqt/QLatin1Char.cpp
 * harbour/contrib/hbqt/TQDirModel.prg
 * harbour/contrib/hbqt/QStyleOptionSpinBox.cpp
 * harbour/contrib/hbqt/TQStyleOptionFrame.prg
 * harbour/contrib/hbqt/TQPicture.prg
 * harbour/contrib/hbfbird/hbfbird.hbc
 * harbour/contrib/hbziparc/hbziparc.hbc
 * harbour/contrib/hbxbp/xbpappevent.prg
 * harbour/contrib/hbxbp/xbpsle.prg
 * harbour/contrib/hbxbp/xbplistbox.prg
 * harbour/contrib/hbxbp/xbpcheckbox.prg
 * harbour/contrib/hbxbp/xbpmenubar.prg
 * harbour/contrib/hbxbp/xbpradiobutton.prg
 * harbour/contrib/hbxbp/xbpfiledialog.prg
 * harbour/contrib/hbxbp/gra.ch
 * harbour/contrib/hbxbp/tests/demoxbp.prg
 * harbour/contrib/hbxbp/xbptabpage.prg
 * harbour/contrib/hbxbp/xbpwindow.prg
 * harbour/contrib/hbxbp/xbpcombobox.prg
 * harbour/contrib/hbxbp/xbpstatusbar.prg
 * harbour/contrib/hbxbp/xbppushbutton.prg
 * harbour/contrib/hbxbp/Makefile
 * harbour/contrib/hbxbp/xbpbitmap.prg
 * harbour/contrib/hbxbp/xbp.ch
 * harbour/contrib/hbxbp/xbpscrollbar.prg
 * harbour/contrib/hbxbp/xbpfontdialog.prg
 * harbour/contrib/hbxbp/xbphtmlviewer.prg
 * harbour/contrib/hbxbp/xbpstatic.prg
 * harbour/contrib/hbxbp/xbptreeview.prg
 * harbour/contrib/hbxbp/xbpdialog.prg
 * harbour/contrib/hbxbp/xbpstyle.prg
 * harbour/contrib/hbxbp/xbptoolbar.prg
 * harbour/contrib/hbxbp/xbp3state.prg
 * harbour/contrib/hbxbp/xbpparthandler.prg
 * harbour/contrib/hbxbp/xbpspinbutton.prg
 * harbour/contrib/hbxbp/xbpdataref.prg
 * harbour/contrib/hbxbp/appevent.ch
 * harbour/contrib/hbxbp/xbpgeneric.prg
 * harbour/contrib/hbxbp/xbpmle.prg
 * harbour/contrib/hbnf/hbnf.hbc
 * harbour/contrib/hbcurl/hbcurl.hbc
 * harbour/contrib/rddsql/rddsql.hbc
 * harbour/contrib/hbhpdf/hbhpdf.hbc
 * harbour/contrib/rddado/rddado.hbc
 * harbour/contrib/gtwvg/gtwvg.hbc
 * harbour/contrib/hbpgsql/hbpgsql.hbc
 * harbour/contrib/rddads/rddads.hbc
 * harbour/contrib/hbclipsm/hbclipsm.hbc
 * harbour/contrib/hbfimage/hbfimage.hbc
 * harbour/contrib/hbgd/hbgd.hbc
 * harbour/contrib/hbmisc/hbmisc.hbc
 * harbour/contrib/hbtip/hbtip.hbc
 * harbour/contrib/hbwin/hbwin.hbc
 * harbour/contrib/hbvpdf/hbvpdf.hbc
 * harbour/contrib/hbbtree/hbbtree.hbc
 * harbour/contrib/hbcrypt/hbcrypt.hbc
 * harbour/contrib/hbssl/hbssl.hbc
 * harbour/examples/pp/pp.hbp
 * harbour/examples/hbdoc/hbdoc.hbp
 * harbour/examples/hbmsql/hbmsql.hbc
 * harbour/examples/hbsqlit2/hbsqlit2.hbc
 * harbour/examples/hbapollo/hbapollo.hbc
 * harbour/examples/pe/pe.hbp
 * harbour/examples/guestbk/guestbk.hbp
 * harbour/examples/hbgf/tests/hbgf.hbc
 * harbour/examples/dbu/dbu.hbp
 * harbour/examples/terminal/terminal.hbc
 * harbour/examples/terminal/trm_app.hbp
 * harbour/examples/hscript/hscript.hbp
 * harbour/examples/hbwhat/hbwhat.hbc
 * harbour/examples/rl/rl.hbp
   ! fixed hardcode CRLF
   * set svn attributes svn:eol-style and svn:keywords
2009-07-08 16:36:29 +00:00
..

/*
 * $Id$
 */

/*
 *------------------------------------------------------------------------
 *                  HARBOUR INTERFACE for SQLITE  
 *------------------------------------------------------------------------
 *
 * Copyright 2003 Alejandro de Garate <alex_degarate@hotmail.com>
 *
 * License: General Public License or for short GPL (GNU)
 * 
 * Developed using:
 *     Harbour 0.42 or upper 
 *     Borland C++ BCC 5.5.1 
 *
 */

 Requirements
 ------------
 Any windows platform W95, W98, W98SE or NT family 
 A C++ compiler, if you use other than Borland some minor changes could
 be required. 


 The program
 -----------
 The source program is quite small (about 50 Kbytes) and a litle basic, 
 but gives an easy way of accessing a SQL Database, like SQLite.
 Inside the prg you can find several C functions used to connect to the 
 database, and Clipper/Harbour code used for calling C functions.
 Most of the code is commented and is easy to follow.
 Of course many enhancement would be done, I will do if I found spare 
 time :)
 The library that come with the program it's based in the SQLite version
 2.8.6


 Purpose
 -------
 To access a sqlite database using Clipper/Harbour language.


 Use
 ---
 This program is mostly self-contained.
 For using you needs:
  1- Borland C++ Compiler BCC 5.5 or upper   (working)
  2- Harbour version 0.42 or upper  (working)
  3- hbsqlite.prg (main program /front end)
  4- hbsqlite.ch  (some defines)
  5- sqlite.lib   (library builded for BCC55 and windows platform)
  6- sqlite.h     (include file for sqlite code)
  7- sqliteInt.h  (include file for sqlite code)
  8- example.db   (a simple sqlite database for testings )

 Steps:
 1.- Unzip the package to the target directory (ie.: \sqlite)

 2.- Keep the zip file at safe place :)

 3.- Add sqlite.lib to the list of libraries 
     You also needs to add sqlite.lib to the list of libraries inside 
     the build.bat file at harbour\bin directory.

 4.- Move the static library sqlite.lib to the harbour\lib directory.

 5.- If you have (1) & (2) working, just compile hbsqlite.prg using:
      bld_b32 hbsqlite   // without extension


 Information about SQLITE
 ------------------------
 1. web site at www.sqlite.org

 2. User list for sqlite (do not ask about harbour stuffs) 
    subscribe at:
 <sqlite-users-subscribe@sqlite.org>         (one by one)

 <sqlite-users-digest-subscribe@sqlite.org>  (digest mode)


 What is inside the source package ?
 -----------------------------------
 Inside the hbsqlite_src.zip file you will find:

    File               Size     Description
 --------------------------------------------------------------------------
 1- hbsqlite.prg       46.401   (main program /front end)
 2- hbsqlite.ch         3.369   (some defines)
 3- sqlite.lib        352.256   (lib builded for BCC55 and windows platform)
 4- sqlite.h           31.222   (include file for sqlite code)
 5- sqliteInt.h        53.893   (include file for sqlite code)
 6- gpl.txt            17.989   (a copy of GPL license)
 7- todo.txt                    (a list of pending things )
 8- readme_en.txt               (this readme)

 Note:
 You may want also the sqlite manager and the sample database, in that 
 case you must download the binary package.


 What is inside the binary package ?
 -----------------------------------
 Inside the hbsqlite_bin.zip file you will find:

    File               Size     Description
 --------------------------------------------------------------------------
 1- hbsqlite.exe      741.376   (harbour front end to sqlite)
 2- sqlite.exe        285.444   (a comand-line Sqlite manager) 
 3- example.db         77.824   (a simple sqlite database for testings)
 4- test.db                     (another sqlite database for testings)
 5- readme_en.txt               (this readme)

 Final comments
 --------------
 You can adapt the program to your needs, but if you made any 
 improvements, fixes or found any error, let me know so I can add it
 to the program.
 Anyway if you want to ask something, or think a feature is missing
 send me a mail.

 Enjoy it!
 
 Alejandro