Need help with iniread and Mysql menu

User Tag List

Results 1 to 3 of 3
  1. #1
    lustikus12's Avatar Banned
    Reputation
    -2
    Join Date
    Jul 2009
    Posts
    17
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help with iniread and Mysql

    Hello i want to read a inifile like this:

    [X]
    wp1 = 123456

    how i can read that in c++ ?

    my 2 question is how to connect with a Mysql Db and read out an name or anyhwaht like this...

    i would be verrey thankfully if anyone know the answer and can help me ! Thank you!!!

    Need help with iniread and Mysql
  2. #2
    piller's Avatar Contributor
    Reputation
    82
    Join Date
    May 2007
    Posts
    103
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    #include <Windows.h>

    GetPrivateProfileString(xx,xx,xx,xx,xx,"c:\\test.ini")

  3. #3
    WargRider's Avatar Member
    Reputation
    20
    Join Date
    Oct 2007
    Posts
    115
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Reading from MySQL is a really complicated and annoying process if you dont know what your doing, if you are running windows, download the mysql server 5.1 for windows 32 bit, EVEN if your running a 64 bit OS. When you intall it using MSI Installer, in the custom options make sure you add the development libraries. Then in VC08++(I dont know how to on dev-C++ or mingw), go to tools, options, environment and solutions, VC++ Directories. There add the include directory from <Your MySQL Path>/include and the to the additional libraries add <Your MysQL Path>/lib/opt, in go to Linker->Input and in the additional dependencies type libmysql.lib . Apply all these changed and learn to use MYSQL from THIS link : Calling MySQL from C . By the way if you into an error that says SOCKET not defined or something like that, ABOVE #include <mysql.h> line, add this, #include <my_global.h> , that will fix the problems ;D please +Rep if you found this helpful

Similar Threads

  1. [PHP] Need help with cookies and header's
    By ntsmarkv in forum Programming
    Replies: 0
    Last Post: 06-08-2011, 09:58 PM
  2. need help with morpher and teleporter
    By lolzz in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 07-25-2008, 08:21 PM
  3. need help with items and professions
    By greekkiller in forum World of Warcraft General
    Replies: 3
    Last Post: 06-16-2008, 02:41 PM
  4. Need help with website and server
    By Ukrajinc in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 12-26-2007, 08:41 PM
All times are GMT -5. The time now is 12:04 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search