http://www.cwhdallas.com/disk-trs/
Disk Trs
![]() |
| *NIB* JOHN DEERE DRIVE DISK M114485 TRS27 TRS32 526 726 732 826 832 1032 | ![]() |
![]() |
US $28.95 | 21d 19h 48m |
| Basic Disk I/O Faster and Better and other mysteries - TRS-80 Information Series | ![]() |
1 Bid | US $9.99 | 1d 3h 32m |
| TRS-80 DISK & othey mysteries - The how to book of disk data recovery | ![]() |
0 Bid | US $9.99 | 1d 3h 43m |
| TRS-80 Model III Disk System Owner's Manual 26-2111 | ![]() |
0 Bid | US $9.99 | 1d 3h 48m |
| Radio Shack TRS-80 Micro Computing System w/ Expansion Interface, Mini DIsk !! | ![]() |
![]() |
US $899.90 | 29d 6h 37m |
| *NIB* JOHN DEERE DRIVE DISK M110594 524D 724D TRS22 TRS24 TRX24 TRS26 826D | ![]() |
![]() |
US $19.95 | 26d 14h 56m |
| Radio Shack 26-4160 TRS-80 Model II Disk System Manufactured 1979 | ![]() |
![]() |
US $400.00 | 22d 4h 54m |
| 1988 Complete Year set of 12 TRS-80 Color Computer Rainbow Magazine on Disks | ![]() |
![]() |
US $69.95 | 21d 17h 48m |
| CP500 TRS-80 Mdl III Clone 5 1/4 Floppy Disk Set | ![]() |
![]() |
US $99.99 | 21d 8h 17m |
| tandy color computer floppy disk game one on one basketbal TRS-80 FREE SHIPPINg | ![]() |
![]() |
US $100.00 | 19d 14h 18m |
| Trs-80 Disk and Other Mysteries The "How to Book" | ![]() |
![]() |
US $49.95 | 18d 22h 48m |
| TRS-80 Model II Disk Controller Board | ![]() |
![]() |
US $99.00 | 18d 9h 55m |
| TRS-80 Model III 3 48K Ram Excellent cosmetic with 2 disk drives | ![]() |
![]() |
US $95.00 | 17d 16h 28m |
| New & Sealed G.F.S. SORCERESS By Avalon Hill For TRS-80 rare Diskette Disk | ![]() |
![]() |
US $15.00 | 4d 11h 28m |
| TRS-80 2000 Hard Disk Controller Board | ![]() |
![]() |
US $99.99 | 11d 9h 54m |
| TRS-80 Model 2000 5 1/4" Disk Drive Set | ![]() |
![]() |
US $99.49 | 11d 9h 54m |
| J&M Systems Disk Controller Cart for Tandy Radio Shack TRS-80 Color Computer | ![]() |
![]() |
US $97.99 | 9d 21h 36m |
| Radio Shack TRS-80 - MSDOS Utility Disk 700-3602 (1982) | ![]() |
![]() |
US $21.24 | 4d 14h 41m |
| New & Sealed VC By Avalon Hill For TRS-80 very Rare Diskette Disk | ![]() |
![]() |
US $15.00 | 4d 10h 53m |
| Rare TRS-80 Model III HARD DISK OPERATING SYSTEM, mod 3, 26-1130, 5 Meg MB HDD | ![]() |
![]() |
US $399.99 | 4d 4h 1m |
| JOHN DEERE TRS22 TRS24 TRS26 TRS32 TRX26 828D 524D 724D FRICTION DRIVE DISK | ![]() |
![]() |
US $15.00 | 4d 16m |
| TRS-80 Color Computer Rainbow Magazine on Disk December 1988 Issue (Tested) | ![]() |
![]() |
US $8.95 | 19h 45m |
| TRS-80 Color Computer Rainbow Magazine on Disk December 1987 Issue (Tested) | ![]() |
![]() |
US $8.95 | 19h 44m |
| TRS-80 Color Computer Rainbow Magazine on Disk August 1987 Issue (Tested) | ![]() |
![]() |
US $8.95 | 19h 44m |
| TRS-80 Color Computer Rainbow Magazine on Disk May 1987 Issue (Tested) | ![]() |
![]() |
US $8.95 | 19h 41m |
| TRS-80 Color Computer Rainbow Magazine on Disk September 1987 | ![]() |
![]() |
US $8.95 | 19h 41m |
| TRS-80 Color Computer Rainbow Magazine on Disk November 1987 | ![]() |
![]() |
US $8.95 | 19h 40m |
| TRS-80 Color Computer Rainbow Magazine on Disk October 1987 | ![]() |
![]() |
US $8.95 | 19h 39m |
| VINTAGE 5 MEG HARD DISK DRIVE RADIO SHACK TRS 80 MODEL II?III?, c1980 | ![]() |
![]() |
US $849.99 | 26d 17h 31m |
| TRS-80 Color Computer + Printer + Modem + Disk Drive + Cassette + MORE!!! | ![]() |
1 Bid | US $49.99 | 1d 17h 9m |
| Powered by phpBay Pro |
![]() |
Rubber Factory [Vinyl] List Price: $22.98 Sale Price: $14.75 |
|
Now on Picture Disc Vinyl !!Released:2004Genre:Rock Style:Blues Rock TracklistA1 When The Lights Go Out 3:24 A2 10 A.M. Automatic 2:59 A3 Just Couldn't Tie Me Down 2:58 A4 All Hands Against His Own 3:17 A5 The Desperate Man 3:54 A6 Girl Is On My Mind 3:28 A7 The Lengths 4:55 B1 Grown So Ugly 2:28 Songwriter - Robert Pete Williams B2 Stack Shot Billy 3:22 B3 Act Nice And Gentle 2:42 Songwriter - Ray DaviesB4 Aeroplane Blues 2:51 B5 Keep Me 2:52 B6 Till I Get My Way 2:31 |
![]() |
Cinderella (Two-Disc Special Edition) List Price: $29.99 Sale Price: $15.88 |
|
Worry not, Disney fans--this special edition DVD of the beloved Cinderella won't turn into a pumpkin at the strike of midnight. One of the most enduring animated films of all time, the Disney-fied adaptation of the gory Brothers Grimm fairy tale became a classic in its own right, thanks to some memorable tunes (including "A Dream Is a Wish Your Heart Makes," "Bibbidi-Bobbidi-Boo," and the title song) and some endearingly cute comic relief. The famous slipper (click for larger image) We all know the story--the wicked stepmother and stepsisters simply won't have it, this uppity Cinderella thinking she's going to a ball designed to find the handsome prince an appropriate sweetheart, but perseverance, animal buddies, and a well-timed entrance by a fairy godmother make sure things turn out all right. There are a few striking sequences of pure animation--for example, Cinderella is reflected in bubbles drifting through the air--and the design is rich and evocative throughout. It's a simple story padded here agreeably with comic business, particularly Cinderella's rodent pals (dressed up conspicuously like the dwarf sidekicks of another famous Disney heroine) and their misadventures with a wretched cat named Lucifer. There's also much harrumphing and exposition spouting by the King and the Grand Duke. It's a much simpler and more graceful work than the more frenetically paced animated films of today, which makes it simultaneously quaint and highly gratifying. --David Kronke DVD Features For another of its classic films, Disney delivers another dazzling DVD with a gorgeous, razor-sharp picture and 5.1 sound. (Note: the 1949 film is properly presented in full-screen format, 1.33 aspect ratio, because widescreen films weren't made until the '50s.) The best part of the supplemental features is the archival material, the absolute highlight of which is two unused songs, "Cinderella's Work Song" (in which Cinderella imagines multiplying herself à la the Sorcerer's Apprentice) and "Dancing on a Cloud." Bippity-boppity-boo! (click for larger image) Because these numbers were never animated, they're accompanied by stylish illustrations from the Disney artists, and they're simply marvelous to look at. The artist of much of that material, Mary Blair, gets her due in a 15-minute featurette, while the better known "Nine Old Men" are the subject of a round-table discussion among some of today's top animators. In addition, a 38-minute documentary covers their contributions to specific characters of Cinderella as well as the film in general and the vocal cast. Also on the historical side is "The Cinderella That Almost Was," tracking the development of the project through decades of original Disney concepts, characters, and songs, including the 1922 silent "Laugh-o-Gram," which is also included in its entirety. The pumpkin transformed (click for larger image) Additional musical material includes three radio programs and a short promo of the movie by Perry Como, in which he summarizes the plot amid some songs by the Fontaine Sisters, star Ilene Woods, and the host himself. Seven other unused songs (17 minutes total) are available in audio-only. The material for kids is on the sparse side, consisting of two music videos, Disney Channel personality Sally (from "Mike's Super Short Show") learning how to become a princess with the help of the Extreme Makeover: Home Edition crew and others, a minor dancing-princess feature, and a DVD-ROM design studio. Oddest extra: ESPN's "top Cinderella stories," including the 1980 U.S. Olympic hockey team and Joe Namath's New York Jets, although stories on Mia Hamm and tennis's Williams sisters should appeal to the film's primary target audience of young girls. --David Horiuchi Cinderella Throughout the Years Rodgers & Hammerstein's Cinderella (1957 Television Production) Rodgers & Hammerstein's Cinderella (1965) The Slipper and the Rose (1976) Faerie Tale Theatre - Cinderella (1982) Rodgers & Hammerstein's Cinderella (1997) Ever After - A Cinderella Story(1998) Worry not, Disney fans--this special edition DVD of the beloved Cinderella won't turn into a pumpkin at the stroke of midnight. One of the most enduring animated films of all time, the Disney-fied adaptation of the gory Brothers Grimm fairytale bec |
![]() |
Pockit LED Warm White Replacement Disk-1 Watt |
|
Pockit LED Warm White Replacement Disk-1 Watt |
![]() |
LB-LED-CDSK Pockit LED Cool White Replacement Disk-1 Watt Sale Price: $16.51 |
![]() |
LB-LED-WDSK Pockit LED Warm White Replacement Disk-1 Watt Sale Price: $16.51 |
![]() |
Sony PFD23A/2 Single Layer 23GB Rewritable Optical Disc for XDCAM, 85 minutes Sale Price: $18.99 |
|
Flexible Platform Large-Capacity Optical Disc High Transfer Rate: 72 Mbps on a single head unit, 144 Mbps on a dual head deck Quick Random Direct Access Hightly Reliable and durable for high performance under tough environmental conditions and extreme temperature. Durable and Re-usable Media Outstanding Picture Quality of MPEG IMX/DVCAM Format Recording Flexible Metadata Recording |
![]() |
Instant Edge DVD by Mark Hatmaker |
|
Mark is in the middle of creating the most comprehensive series on grappling tactics ever produced. He calls it "Brutal Submissions". And they are brutal. this new video of Mark's answers the most common question fighters have in grappling: Now that you're on the ground what the heck do you do to END THE FRIGGIN' FIGHT? pMark keeps it simple... something no other martial art has been able to do. So simple in fact... that there are just 3 basic positions he bothers to cover. They are the most common positions you will find yourself in on the ground in a fight. No ? wait. They are the ONLY positions you will find yourself in 99% of the time. Crossbody... cross-side... and top body./p pUnless you're grappling with a double-jointed gymnast this is pretty much all you need./p pHe keeps it simple but don't think that means limi |
![]() |
Illegal Boxing DVD with Mark Hatmaker |
|
Cripple, Shock, And Cause Instant Blinding Pain And Nerve Damage To ANY Opponent You Use Them On! These are the "stealth" moves the pro's use when the ref ain?t watching... or when it's "just you and me, buddy" in the street. Dirty, filthy, uncivilized tricks that will mess him up and teach him to fear You the very instant you use them! Want a taste of what you're about to see? Check these filthy moves out: * How to "soften him up" in the clutch with mini-head butts he won't see (and neither would a ref). Almost invisible illegal moves that will leave his head looking like a bruised banana. (And leave his brain ringing and slow.) * "Nut cracker" moves that remove his child-bearing ability... even if he's wearing a steel-lined protective cup! (Very nasty, very effective.) * Bust his ankle before he realizes you've moved. Soft tissue damage done with your thumbs that cause instant (and uncontrollable) panic! How the legendary bare-knuckle fighters like the great Jack Dempsey used "falling away" punches to put away larger opponents in a heartbeat. * Maximum pain tricks that will take his mind off you... and force him to spend ALL his energy trying to get as far away from you as possible, as fast as possible! (Up to you if you let him.) * "Corkscrew" elbow "insert" moves that turn missed punches into super-punishing "back slugs" that can end it right then and there. (He won't see it coming.) How to simply and easily rattle his skull so hard his brain will temporarily shut down in shock. (Great move against a larger and more cocky opponent!) * Illegal ground moves that will CANCEL OUT all his superior grappling skills. (No one expects these filthy moves... but you can turn around a fight in a blink with them. Necessary if you're attacked from behind, or double-teamed.) |
|
Portfolio Stock Selection: Trs-80 Model III (48K) (Book and Disk) |
|
|
Gridiron Offense/Defence for Trs-80 Model III With 32K and Disk Drive (Disk) |
|
|
DB Info Proc 2 TRS-80 Ntwk 3 Appli Disk |
|
![]() |
DISCWASHER 1509 Home Theater Calibration Disc List Price: $5,246.99 |
|
This home theatre setup disk is Diskwasher Digital's Silver Special Edition which offers a collection of audio and video calibration tools, as well as high-definition audio and video demo tracks. The DVD provides a full set of video calibration tests to optimize your viewing experience while providing audio calibration tests for stereo, Dolby® Pro Logic, Dolby® Digital 5.1 (AC3) and DTS® to achieve the optimum audio experience. Features multiple angle viewing, multiple aspect ratio viewing, multiple audio tracks, multiple languages and subtitles, parental controlled viewing and complete user control. Calibration tests include: Phase test, Pink noise level, LFE test, Whole system test, Contrast/Black level, Brightness test, Sharpness test, and Color and Tint set-up. |
![]() |
Zoom H4n Portable Digital Recorder Package with Zoom RC-4 Remote List Price: $649.00 Sale Price: Too low to display |
|
The Zoom H4n Handy Recorder picks up where the H4 left off and adds additional features to an already popular audio recorder. Ideal for recording interviews, lectures, rehearsals, meetings, and more, this palm-sized unit packs the ability to record up to 4 channels of audio at greater than CD quality. The H4n features onboard true X/Y stereo microphones to pick up clear, natural sound without phase shifting. The mics can be rotated to select a 90° or 120° recording pattern for terrific versatility. The digitally-controlled preamp, combined with the high-quality microphones, allows you to capture Linear PCM audio at rates up to 24-bit/96kHz. The recorder captures audio to SD or SDHC cards with capacities up to 32GB. A USB 2.0 port allows you to quickly transfer files to a Mac or PC, or use the H4n as a live audio interface. For connecting your own microphones or instruments, the H4n features XLR/TRS combo input jacks with phantom capability. A 3.5mm line output is provided, and a reference speaker is built-in for quickly reviewing your recordings. The unit operates on a pair of standard AA batteries, and features a Stamina mode to provide up to 11 hours of continuous recording at 16-bit/44.1kHz. Other useful features of the H4n include variable playback speed, automatic and pre-record functions, a low-cut filter and limiter for improving the sound quality of recordings, time stamping, a metronome and tuner, and more. The backlit LCD screen and intuitive controls are easy to use, even for the recording novice. A collection of accessories are included so you can start recording right out of the box. |
Get Started with QT and Embedded FireBird
Written by:
Sergey Timoschuk,
Software Developer of Device Team, Apriorit Inc.
Content
Introduction
Setting environment
1. Install QT SDK:
2. Build QT for the work with VS 2005(2008)
3. Install Visual Studio Addon for QT
4. Install FireBird
5. Build Plug-in for IBase
Connecting to the existent database
Creating FireBird database programmatically
Database queries
Simple Select from the database.
How to call the stored procedure?
Conclusion
Useful links
Introduction
In this article we will consider questions:
- Installation of QT SDK, its configuration and integration with Visual Studio.
- Building IBase plug-in.
- Creating the database programmatically and setting connection with it.
- Also we will discuss the problem with the username and password for the database.
- We will consider simple queries to the database and also calling of the stored procedures.
Setting environment
Described example is based on the QT 4.5.2 LGPL.
So to set the environment use the following steps.
1. Install QT SDK:
- You should have required disk space (2-3 GB if you need to build all libraries and examples, 1.5 GB otherwise).
- Install SDK: QTSDK 4.5.2 - http://get.qt.nokia.com/qtsdk/qt-sdk-win-opensource-2009.03.exe.
It’s recommended not to change the default path (or you can use the same path but for example on the disk "D:"). - Create Environmental Variable "QTDIR" and set the path "C:Qt2009.03qt" (if the disk was not changed on step 2.
2. Build QT for the work with VS 2005(2008)
1) Start "VS 2005 Command Prompt" (in the Start menu)
2) In the appeared console go to the folder QTDIR = "C:Qt2009.03qt"
3) Start "configure.exe" with such parameters:
configure.exe –plugin –sql -ibase
You can see details on these parameters by means of the command:
configure.exe -help
4) When the console asks: Which edition of Qt do you want to use? we choose Open Source Edition.
After that we press "y" to accept the license offer.
5) Now we should wait a bit while the files of VCProj and main Solution are being created. Finally the solution file projects.sln is created in the folder "C:Qt2009.03qt".
3. Install Visual Studio Addon for QT
1) Close all Visual Studio applications.
2) Start the installation qt-vs-addin-1.0.2.exe - http://get.qt.nokia.com/vsaddin/qt-vs-addin-1.1.2.exe.
3) Start Visual Studio and open QT options by means of the menu "QT->QT Options". Click Add and create some name, for example "QT 4.5.2". The specific name is not important but it is stored together with the project, and so the other developer can not to build the project in a proper way because of the error ("No such QT version is found on this machine" or something like this).
Specify the path to the QT folder that is for our example $(QTDIR)("C:Qt2009.03qt"). And finally choose the new created record "QT 4.5.2" as the QT Default Version.
4) There is no need to build all projects. We should build only:
- QtCore
- QtGUI
- QtSQl
- QMain
Note: Win32 static library and QT Library have different settings for "Treat wchar_t as Built-In" property. If you want to build the Win32 static library into the QT application, then you should either build QT without this option or to change the property "Treat wchar_t as Built-In Type" to "No (/Zc:wchar_t-)".
To switch off this option in QT you should do the following before the step 2:
- Open file qmake.conf. It can be found here QTDIR/mkspecs/win32-msvc2005/qmake.conf. I worked with the Visual Studio 2005 and so used subfolder win32-msvc2005. If you work with the other version then open this file in the corresponding folder.
- In this file we should change the flag QMAKE_CFLAGS by deleting -Zc:wchar_t-.
4. Install FireBird
Firebird can be downloaded here – FireBird - http://downloads.sourceforge.net/project/firebird/firebird-win32/2.1.3-Release/Firebird-2.1.3.18185-0_Win32.zip?use_mirror=softlayer.
5. Build Plug-in for IBase
Go to the folder $(QTDIR)srcpluginssqldriversibase and build the project in Debug and Release.
Before building change the project properties:
- In the C/C++/General->Additional Include Directories add the path to the folder include (for example C:Program FilesFirebirdFirebird_2_1include)
- In the Linker/General -> Additional Library Directories add the path to the folder where the libraries for FireBird are placed. (for example C:Program FilesFirebirdFirebird_2_1lib)
- To build the IBase project we should correct the name of the linked library (Linker/Input->Additional Dependencies) from gds32_ms.lib to the fbclient_ms.lib. This library is included into the FireBird package.
Embedded Server can be downloaded here: FireBird Embedded 2.1.3 Release - http://downloads.sourceforge.net/project/firebird/firebird-win32/2.1.3-Release/Firebird-2.1.3.18185-0_Win32_embed.zip?use_mirror=softlayer
- Rename the file fbembed.dll to the fbclient.dll.
Connecting to the existent database
Before setting the connection with database we should first load the QIBASE plug-in. If you decide to use the plug-in and load it manually, then the following code is for you (with assumption that plug-in is in the same folder with EXE file).
…
if(!pluginLoader_.isLoaded())
{
pluginLoader_.setFileName(QApplication::instance()->applicationDirPath()
+ QDir::separator() + qtIBasePluginName_);
if (!pluginLoader_.load())
{
//// Loading SQL Driver failed.;
isInitialized_ = false;
return false;
}
}
QObject* object = pluginLoader_.instance();
if (object == NULL)
{
//Loading SQL Driver Instance failed.;
pluginLoader_.unload();
return false;
}
QSqlDriverPlugin* plugin = qobject_cast<QSqlDriverPlugin*>(object);
if (plugin == NULL)
{
//QSqlDriverPlugin == NULL;
pluginLoader_.unload();
return false;
}
driver_ = plugin->create("QIBASE");
if (driver_ == NULL)
{
//Loading QIBASE Driver Instance failed.;
pluginLoader_.unload();
return false;
}
isInitialized_ = true;
return isInitialized_;
…
Now when the plug-in for working with FireBird is loaded, we can start with the setting the connection to our database.
connectionName_ = "Connection_1";
QSqlDatabase database;
//Adding database (DRIVER);
database = QSqlDatabase::addDatabase(driver_, connectionName_);
//Check Valid database.;
if (!database.isValid())
{
QString lastError = database.lastError().text();
//Database is not valid
return false;
}
//Set database configurations.;
// filePath = ":D:FireBirdAndQTdebugNew.FDB";
// userName = "Serg";
// password = 12345;
// connectionString_ = "server type=Embedded; auto_commit=True;
// auto_commit_level=4096; connection lifetime=1; DataBase="%1"";
database.setDatabaseName(filePath);
database.setUserName(userName);
database.setPassword(password);
QString connectionString = QString(connectionString_).arg(filePath);
database.setConnectOptions(connectionString);
bool result = false;
//"Openning database. Driver PTR == %d", (int)database.driver();
result = database.open();
if(!result)
{
QString lastError = database.lastError().text();
lastError_ = (uint)database.lastError().number();
}
I want you to pay special attention to the property QSqlDatabase of the object:
database.setDatabaseName(filePath);
database.setUserName(userName);
database.setPassword(password);
QString connectionString = QString(connectionString_).arg(filePath);
database.setConnectOptions(connectionString);
Login, password and full path to the database could be passed in the connection string, but there I faced with the following problem. When passing all mentioned settings in the connection string and not by the functions set…(), I discovered that they were not assigned to the database object.
Creating FireBird database programmatically
To create the database in the program you should perform the following:
bool FireBirdDatabase::Create(const QString& filePath, const QString&
userName, const QString& password)
{
if (!isInitialized_)
{
Initialize();
}
if (QFile::exists(filePath))
{
return false;
}
databasePath_ = filePath;
QString queryString;
queryString += "CREATE DATABASE";
queryString += " '" + filePath + "'";
queryString += " USER '" + userName + "'";
queryString += " PASSWORD '" + password + "'";
queryString += " DEFAULT CHARACTER SET UNICODE_FSS";
ISC_STATUS_ARRAY status;
isc_db_handle databaseHandle = NULL;
isc_tr_handle transactionHandle = NULL;
unsigned short g_nFbDialect = SQL_DIALECT_V6;
if (isc_dsql_execute_immediate(status, &databaseHandle, &transactionHandle,
0, queryString.toStdString().c_str (), g_nFbDialect, NULL))
{
long SQLCODE=isc_sqlcode(status);
return false;
}
isc_commit_transaction( status, &transactionHandle );
if (databaseHandle != NULL)
{
ISC_STATUS_ARRAY status;
isc_detach_database(status, &databaseHandle);
}
return true;
}
Why did I choose isc_dsql_execute_immediate() method of the database creation? The answer is simple – I just didn’t manage to do it in another way
. Some providers allow to create database as follows:
…
QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");
db.setDatabaseName(":memory:");
if (!db.open())
{
QMessageBox::critical(0, qApp->tr("Cannot open database"),
qApp->tr("Unable to establish a database connection.n"
"This example needs SQLite support. Please read "
"the Qt SQL driver documentation for information how "
"to build it.nn"
"Click Cancel to exit."), QMessageBox::Cancel);
return false;
}
…
BUT in particular for this QT version and IBASE driver this method doesn’t work.
To get more detailed information you can turn to the examples from QT (QTDIRexamplessqlConnection.h).
Note: Be careful - FireBird works only with the ASCII coding. Therefore if your path (filePath) contains UNICODE symbols then the function isc_dsql_execute_immediate returns an error.
Database queries
Simple Select from the database.
void DatabaseModel::SelectJobs(QStringList& jobs )
{
QSqlQuery query = QSqlQuery(fireBirdDatabase_.CreateQuery());
QString preparedString = "SELECT JOB_NAME FROM TBL_JOBS";
query.prepare(preparedString);
if (!query.exec())
{
QString err = query.lastError().text();
throw std::runtime_error("Error executing Query.");
}
while (query.next())
{
QSqlRecord record = query.record();
jobs.append(record.value(0).toString());
}
}
where fireBirdDatabase_.CreateQuery() looks as follows:
{
return QSqlQuery(QSqlDatabase::database(connectionName_));
}
How to call the stored procedure?
Let’s consider an example – the procedure to add the new record to the database.
Our procedure obtain parameters: the string with the position name, the salary value as the integer number, and also the description that is stored in the binary form (BLOB).
Our procedure returns the ID of the new record.
{
…
QByteArray description("Test description");
int salary = 1200;
jobName = "tester";
QSqlQuery query(fireBirdDatabase_.CreateQuery());
bool result = query.prepare("EXECUTE PROCEDURE SP_INSERT_JOB (?, ?, ?)");
query.addBindValue(jobName);
query.addBindValue(salary);
query.addBindValue(description);
if (!query.exec())
{
QString err = query.lastError().text();
throw std::runtime_error("Error executing Query.");
}
query.next();
int jobID = query.value(0).toUInt();
…
}
Conclusion
I hope that this article will help you to:
- Configure QT environment for the further work.
- Build the plug-in for the work with FireBird.
- Connect to the existent database or create the new one programmatically.
- Execute various requests to the firebird.
I’ve attached the test database and code to illustrate the described steps and examples.
To browse the database you can use these clients:
- IBExpert - http://ibexpert.net/ibe/
- FlameRobin - http://www.flamerobin.org/
To access the test database use login Serg and password 12345.
Useful links
- Firebird database - http://www.firebirdsql.org/.
- FlameRobin (open-source administration tool) - http://www.flamerobin.org/.
- IBExpert (administration tool, free Personal Edition download) - http://ibexpert.net/ibe/.
- Other Firebird tools - http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_contrib_download.
- QTSDK 4.5.2 - http://get.qt.nokia.com/qtsdk/qt-sdk-win-opensource-2009.03.exe
About the Author
Sergey Timoschuk is Software Developer of Device Team in Apriorit Inc.
Apriorit is the provider of the professional consulting and development services in the advanced software development fields.
What is airman holdover like in TRS 319?
My fiance just graduated BMT last Friday but he fractured a disk in his back so they're sending him to the 319th; they're calling it airman holdover. Is it the same boot camp scenario? Does he get base liberty on weekends? Can I come see him? He told me he might be there for an undetermined amount of time and I'm trying to figure out what his liberties are since he IS a graduate and no longer a trainee.
Hello Sarah,
I'm sorry to hear that your fiance fractured a disc in his back.
As I read it, the 319th Training Squadron is a place for people who have medical issues and/or are awaiting discharge from the Air Force for a variety of reasons, such as medical problems, disciplinary problems, or failure to pass the course!
http://www.lackland.af.mil/news/story.asp?id=123168570
What I think will happen is this:
A. He will be held there until the medical people can determine if he is healed and able to serve in the Air Force world wide. OR
B. If he is not able to serve world wide and be trained in a job where his back is not a problem then he will be medically separated from the Air Force and sent home.
If he is able to remain in the Air Force he will then be sent on to a technical school in Texas, California, or Mississippi. Or, he could be sent direct to a base to receive On-The-Job-Training without a technical school.
He is no longer a basic trainee. So, he goes to somewhere in the squadron to work every day, Mon-Fri, from 7:30 a.m. to 4:30 p.m. He is now free to call you on the phone at any time. He's on light duty. They probably have him helping with the paperwork doing the processing of discharges of airmen from the AF.
About 300 people are in the 319th awaiting their status for either remaining in the AF or to be discharged. The usual time in the 319th is from 7 - 15 days, depending.
Also, he could be spending some appointment times at the hospital getting x-rays and doctor's evaluations of his back.
Be patient. Don't plan on spending money to go visit him. You may be in transit when he is being sent home or sent on to another base for technical school. (Goodfellow AFB, TX, Sheppard AFB, TX, Lackland AFB, TX, Vandenberg AFB, CA, or Keesler AFB, MS.)
He will tell you when he can. He probably doesn't know, yet. Be patient.
Best wishes,
Larry Smith
Senior Master Sergeant, USAF (Ret.)
First Sergeant
Hello, iPad. Hello, Cloud 2.
The first piece of software I ever wrote was on the TRS-80 Model 1. It was called "How To Juggle”, and it had 4K of memory. It was my version of “Hello World”, what every programmer first writes on a new piece of hardware. CLOAD Magazine purchased it for $75, they distributed it to their subscribers on a cassette (there weren’t disks for the TRS-80 yet). It was 1979. I was 15 years old, and I ...
Thanks for visiting!



![Rubber Factory [Vinyl]](http://ecx.images-amazon.com/images/I/61yVomZtUAL._SL75_.jpg)








