README.txt
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:3k
源码类别:

模拟服务器

开发平台:

C/C++

  1. mysql++ 1.7.1 readme (Win32/Visual C++) version
  2. -----------------------------------------------
  3. NOTES:
  4. ------
  5. 1) The main workspace and project for the mysql++ API are located in the root
  6.    directory
  7. 2) This project, when built, will yield the static library mysql++.lib in the
  8.    /lib directory
  9. 3) This library needs the header files in the /include and /mysql/include
  10.    directory, and libmysql.lib in the mysql/lib directory
  11. 4) All programs using MySQL++ need libmysql.dll (located in the /mysql/lib
  12.    directory) to be able to run. You have to put it into the same directory
  13.    as the executable, or for example copy it into the windows/system directory
  14. 5) In the /example directory a workspace and project have been made for
  15.    building the (non-MFC) examples
  16. 6) In the /example/MFC_example an example for using MySQL++ in an MFC project
  17.    has been made
  18. PROBLEMS:
  19. ---------
  20. 1) Visual C++ doesn't provide full functionality for longlongs, such as
  21.    strtoll and ostream operator <<, so all longlongs have been replaced with
  22.    ints in the examples
  23. 2) The example custom4.cpp could not be compiled
  24. 3) There are still some problems with the functions for static result sets.
  25.    They seem to work alright with vectors, but might not work for the other
  26.    STL containers
  27. 4) In every project you make with MySQL++ support, you need to use the
  28.    multithreaded DLL run-time library. This can be set in Project Settings,
  29.    C/C++ tab, category Code Generation, "Use run-time library" listbox.
  30.    If you don't want to change your run-time library, change the run-time
  31.    library in the MySQL++ project and rebuild mysql++.lib (warning: this is
  32.    not recommended and may yield linker errors in your project!)
  33. HOW TO RUN THE EXAMPLES
  34. -----------------------
  35. 1) You should have mysql server installed on your localhost with user root and
  36.    no password.
  37. 2) Run resetdb.exe example in order to create test database.
  38. 3) Run other examples
  39. HOW TO ADD MYSQL++ TO AN EXISTING VISUAL C++ PROJECT
  40. ----------------------------------------------------
  41. 1) Add mysql++.lib to the project
  42. 2) Go to Project Settings, C/C++ tab, category Preprocessor, and add the
  43.    directories include and mysql/include to the "Additional include
  44.    directories" edit box
  45. 3) In the source files, in which you want to use MySQL++, add the line
  46.    #include <mysql++>
  47.    after all other included header files (especially those of MFC)
  48. 4) If errors occur, see the "Problems" section
  49. Good Luck !
  50. The Lazy Fox
  51. mailto:lazyfox@foxden.dhs.org