Archive for the ‘C++’ Category
C++ Picmiz Source (Qt, QImage, Drag’n Drop, Qthread)|C++ Picmiz les sources (Qt, QImage, Drag’n Drop, Qthread)
As you may know I developed a software in Qt to resize multiple images using QImage and QThread (multithreading). This software also use drag and drop and search recursively into the path to find images.
The source are a very good example and a very good tutorial for every one who want to stuffs in Qt.
I use Icon for mac and windows etc. So it is a complete example from A to Z.
But I did it very quickly because my girl friend wanted to tag some picture on her mac (and I am on windows) so the code is sometime not clean and the architecture not efficient! I KNOW!
C++ – Style Guide, Advices & Tips
A few months ago I developed several applications in C++. So, I create a small style guidelines and I list some optimizations useful to develop good programs.
C++ – Thread, Mutex, Semaphore, Sleep a Cross platform Framework (for Windows & POSIX)
In this post, I describe and give the source to create cross platform Thread, Mutex, Semaphore or Sleep that work on Windows and POSIX.
Click to continue…
SURF/C++/OpenCV/Image-Sound Processing : Teaching Objects/Words to Nao (the Robot)
In my last internship at the INRIA Bordeaux (Flowers Team), I create a system to teach new words and new objects to Nao.
Click to continue…
C++ – Share a QT (trolltech) application with MySql (sql driver)
My last post was about creating the MySql driver for QT (trolltech).
But, I want to write a little post for people who, like I did, do want to share their QT Application with others. In fact, even if it works correctly on your computer, it is not the case on another one you have the (very ugly) : “SQL Driver is not loaded”, lets look at the solution…
When I shared my application with a friend, the program started without any error. But, when it tried to connect to the database it showed an error “Driver not loaded”. It was a surprise because, I put every dlls in the application directory : mingwm, mvscr90, qtcore, qtgui, qtsql,and also qsqlmysql4.
I checked with Dependency Walker no error were found…
But it was clear that something was missing… After some research, you have to copy every dll from C:\Qt\2009.X\qt\plugins\sqldrivers on the computer where you want to test your application. You have to use the same directory as usual plugins :
So copy sqldrivers dir into your executable dir. So near your executable, you must have usual dlls and sqldrivers directory (with every dll needed into it).
Then it will work.
If it doesn’t copy the sqldrivers dir in the same (original) path (for example C:\Qt\2009.X\qt\plugins\sqldrivers).
Good luck!
C++ – Qt (trolltech) and Mysql, load the driver
You can easily find tutorials about how to use Mysql with QT. But most of time, it is difficult to find how to create the Mysql driver (which can cause the error : “Driver not loaded”).
So here is some help to do that.
Please, note that if the tutorial is done correctly, you DO NOT NEED TO COMPILE QT COMPLETELY (compiling QT takes 1 hours – here 10 minutes are needed).
Avr atmega128 – Start Programming with CodeVision a tutorial
In this post, I will explain the base to create a program and load it on the AVR atmega 128.
The program is very simple and just used the leds and output ports.
Click to continue…
