Home    Complete Listing    Syndication    Contact    Search

Recent Posts
Muscle Whey
Taste Cafe
Vinegar Mother
Jelly Castle
Jock Jams Volume 2
High Protein Vegetarian Recipes
Jay Robb Protein Powder
Bee Alive Royal Jelly

Network
Lets Food!
Meal Foods
Wedding Crash
Card Boat
Gift Clicks
Health Supply
Health Drugs
Crisp Healthcare
Healthy Senses
Health Directs
Still Healthy
Healthcare Topic

Marketplace

Err.exe

Posted on January 21, 2010.
Err.exeStart with QT Embedded and FireBird

Written by:
Timoschuk Sergey,
Software Developer Team Device, Inc. Apriori .

Content

Introduction
Setting the environment
1. Installer SDK QT
2. Building QT to work with VS 2005 (2008)
3. Addon install Visual Studio QT
4. Installing Firebird
5. Build plug-in for IBase
Connecting to existing database
Creating database FireBird program
Database queries
Simply select the database.
How to call the stored procedure?
Conclusion
Links

Introduction

In this article we will examine issues:

  1. Installing the SDK QT, configuration and integration with Visual Studio.
  2. Building IBase plug-in.
  3. Creation of the database program and linking with it.
  4. We will also discuss the problem with the username and password for the database.
  5. We will consider simple queries to the database and call stored procedures.

Setting the environment

example described is based on QT 4.5.2 LGPL.

So, to set the environment using the following steps.

1. Installer SDK QT

  1. You must have the required disk space (2-3 GB if you need to build all the libraries and examples, 1.5GB elsewhere).
  2. Installing SDK 4.5.2 QTSDK - http://get.qt.nokia.com/qtsdk/qt-sdk-win-opensource-2009.03.exe.
    It is recommended not to change the default path (or you can use the same path, but for example on the disk "D: \).
  3. Create the environment variable "QTDIR" and set the path "C: \ Qt \ qt \ 2009.03" (if the disc has not been modified in step 2.

2. Building QT to work with VS 2005 (2008)

1) Start "VS 2005 Command Prompt" (Start menu)

2) In the console seems to run file QTDIR = "C: \ Qt \ 2009.03 \ \ qt"

3) Start "configure.exe" with the parameters:

configure.exe-plugin-sql-ibase

You can see details on these settings using the command:

configure.exe-help

4) When the console application: Which edition of Qt do you use? We choose Open Source Edition.

After that, we press "Y" to accept the offer of license.

5) Now we must wait a little while and vcproj files are main solution being created. Finally, the solution file projects.sln is created in the folder "C: \ Qt \ qt \ 2009.03.

3. Addon install Visual Studio QT

1) Close all Visual Studio.

Two) installing qt-vs-addin-1.0.2.exe - http://get.qt.nokia.com/vsaddin/qt-vs-addin-1.1.2.exe Start.

3) Start Visual Studio and Qt options open through the menu QT-> Options QT. Click Add and create a name, eg "QT 4.5.2. The specific name is not important; but it is stored with the project, and if another developer can not build the project in an appropriate manner because of the error ("No version of Qt is available on this machine" or something like this) .

Specify the path to the QT file for our example is $ (QTDIR) ("C: \ Qt \ 2009.03 \ \ qt"). And finally choose the new record set "QT 4.5.2" as the version of Qt default.

4) It is not necessary to build all projects. We must rely only:

  • QtCore
  • Qtgui
  • QtSQl
  • QMain

Note: Win32 static library and Qt have different settings for "Treat wchar_t as Built-In property. If you want to build the Win32 static library in the QT application, then you must either create QT without this option or to change property "Treat wchar_t as integrated type" to "No (/ Zc: wchar_t-)".

To extinguish.

Share |

Comments

There are no comments.

Leave a Comment

Your Name
Your Email
Comments
Human Check. Type 5863.