Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » MySQL example compile issue
Re: MySQL example compile issue [message #35897 is a reply to message #35895] Sat, 31 March 2012 22:35 Go to previous messageGo to previous message
BioBytes is currently offline  BioBytes
Messages: 307
Registered: October 2008
Location: France
Senior Member
Hi ffbdev,

What you need to compile a MySql project is:

1- Install MysQl Server from MySql Website http://www.mysql.fr/downloads/mysql/

2- Set paths to MySql Server files in U++ build configuration (U++ Menu "Setup" and "Build methods"):

In Tab "Path-Executables directories": ..\MySql Server\bin
In Tab "Include directories": ..\MySql Server\include
In Tab "Lib directories": ..\MySql Server\lib

3- Add MySql package to your project in the TheIde by clicking right on the name of your project and choose "add package" in the pop-up menu. Choose MySql interface from the uppscr package.

4-In header file of your U++ project, just include MysSql<MySql.h> as in the following code example from one of my personal project (QSkills):

#ifndef _QSkills_QSkills_h
#define _QSkills_QSkills_h

#include <CtrlLib/CtrlLib.h>
#include <GridCtrl/GridCtrl.h>
#include <SysInfo/SysInfo.h>
#include <SysExec/SysExec.h>
#include <MySql/MySql.h>
#include <Controls4U/Controls4U.h>
#include <Functions4U/Functions4U.h>
#include <Report/Report.h>
#include <plugin/png/png.h>

.......


5- Do not forget to settle the "Main Package Organization" to GUI.MYSQLDLL. This can be done through the TheIde main menu "Project".

When installing your application, libMySql.dll file must be copied in Windows\System32 directory or in the same directory as the application exe file for dynamic linkage.

Hope this could be helpful Smile


Biobytes

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Parsing xml..
Next Topic: Moving to Linux dev from Win
Goto Forum:
  


Current Time: Mon May 13 19:36:47 CEST 2024

Total time taken to generate the page: 0.02769 seconds