0000: 56 69 73 75 61 6c 20 43 2b 2b 20 56 65 72 73 69 Visual C++ Versi
0010: 6f 6e 20 43 6f 6d 70 61 74 69 62 69 6c 69 74 79 on Compatibility
0020: 0a 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e .~~~~~~~~~~~~~~~
0030: 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e ~~~~~~~~~~~~~~~~
0040: 7e 0a 20 20 20 20 4d 79 53 51 4c 2b 2b 20 69 73 ~. MySQL++ is
0050: 20 66 75 6c 6c 79 20 66 75 6e 63 74 69 6f 6e 61 fully functiona
0060: 6c 20 77 69 74 68 20 56 69 73 75 61 6c 20 43 2b l with Visual C+
0070: 2b 20 32 30 30 35 20 61 6e 64 20 32 30 30 38 2e + 2005 and 2008.
0080: 0a 0a 20 20 20 20 4d 79 53 51 4c 2b 2b 20 61 6c .. MySQL++ al
0090: 73 6f 20 77 6f 72 6b 73 20 77 69 74 68 20 56 43 so works with VC
00a0: 2b 2b 20 32 30 30 33 20 28 61 2e 6b 2e 61 2e 20 ++ 2003 (a.k.a.
00b0: 56 43 2b 2b 20 37 2e 31 29 2c 20 77 69 74 68 20 VC++ 7.1), with
00c0: 74 68 65 0a 20 20 20 20 65 78 63 65 70 74 69 6f the. exceptio
00d0: 6e 20 6f 66 20 74 68 65 20 53 53 51 4c 53 20 66 n of the SSQLS f
00e0: 65 61 74 75 72 65 2e 20 20 54 68 65 72 65 20 77 eature. There w
00f0: 61 73 20 70 61 72 74 69 61 6c 20 73 75 70 70 6f as partial suppo
0100: 72 74 20 66 6f 72 0a 20 20 20 20 53 53 51 4c 53 rt for. SSQLS
0110: 20 77 69 74 68 20 56 43 2b 2b 20 32 30 30 33 20 with VC++ 2003
0120: 69 6e 20 4d 79 53 51 4c 2b 2b 20 76 32 2c 20 62 in MySQL++ v2, b
0130: 75 74 20 61 20 66 65 61 74 75 72 65 20 77 65 20 ut a feature we
0140: 61 64 64 65 64 20 69 6e 0a 20 20 20 20 4d 79 53 added in. MyS
0150: 51 4c 2b 2b 20 76 33 2e 30 20 63 72 61 73 68 65 QL++ v3.0 crashe
0160: 73 20 74 68 69 73 20 76 65 72 73 69 6f 6e 20 6f s this version o
0170: 66 20 74 68 65 20 63 6f 6d 70 69 6c 65 72 2c 20 f the compiler,
0180: 73 6f 20 77 65 20 68 61 64 20 74 6f 0a 20 20 20 so we had to.
0190: 20 72 65 6d 6f 76 65 20 73 75 70 70 6f 72 74 20 remove support
01a0: 66 6f 72 20 69 74 20 65 6e 74 69 72 65 6c 79 2e for it entirely.
01b0: 20 20 4d 79 53 51 4c 2b 2b 20 61 75 74 6f 6d 61 MySQL++ automa
01c0: 74 69 63 61 6c 6c 79 20 64 69 73 61 62 6c 65 73 tically disables
01d0: 0a 20 20 20 20 53 53 51 4c 53 20 77 68 65 6e 20 . SSQLS when
01e0: 79 6f 75 20 62 75 69 6c 64 20 69 74 20 77 69 74 you build it wit
01f0: 68 20 56 43 2b 2b 20 32 30 30 33 2e 20 20 41 73 h VC++ 2003. As
0200: 20 6c 6f 6e 67 20 61 73 20 79 6f 75 20 61 76 6f long as you avo
0210: 69 64 0a 20 20 20 20 75 73 69 6e 67 20 74 68 61 id. using tha
0220: 74 20 66 65 61 74 75 72 65 20 6f 66 20 74 68 65 t feature of the
0230: 20 6c 69 62 72 61 72 79 2c 20 79 6f 75 20 73 68 library, you sh
0240: 6f 75 6c 64 20 62 65 20 66 69 6e 65 2e 0a 0a 20 ould be fine...
0250: 20 20 20 4f 6c 64 65 72 20 76 65 72 73 69 6f 6e Older version
0260: 73 20 6f 66 20 56 69 73 75 61 6c 20 43 2b 2b 20 s of Visual C++
0270: 61 72 65 20 62 61 73 69 63 61 6c 6c 79 20 68 6f are basically ho
0280: 70 65 6c 65 73 73 20 77 68 65 6e 20 69 74 0a 20 peless when it.
0290: 20 20 20 63 6f 6d 65 73 20 74 6f 20 62 75 69 6c comes to buil
02a0: 64 69 6e 67 20 63 75 72 72 65 6e 74 20 76 65 72 ding current ver
02b0: 73 69 6f 6e 73 20 6f 66 20 4d 79 53 51 4c 2b 2b sions of MySQL++
02c0: 2e 20 20 54 68 65 79 20 68 61 76 65 20 74 6f 6f . They have too
02d0: 0a 20 20 20 20 6d 61 6e 79 20 77 65 61 6b 6e 65 . many weakne
02e0: 73 73 65 73 20 69 6e 20 74 68 65 69 72 20 53 74 sses in their St
02f0: 61 6e 64 61 72 64 20 43 2b 2b 20 69 6d 70 6c 65 andard C++ imple
0300: 6d 65 6e 74 61 74 69 6f 6e 20 74 6f 20 62 75 69 mentation to bui
0310: 6c 64 20 61 0a 20 20 20 20 6d 6f 64 65 72 6e 20 ld a. modern
0320: 6c 69 62 72 61 72 79 20 6c 69 6b 65 20 4d 79 53 library like MyS
0330: 51 4c 2b 2b 2e 20 20 49 66 20 79 6f 75 20 63 61 QL++. If you ca
0340: 6e 6e 6f 74 20 75 70 67 72 61 64 65 20 79 6f 75 nnot upgrade you
0350: 72 20 63 6f 6d 70 69 6c 65 72 2c 0a 20 20 20 20 r compiler,.
0360: 6d 79 20 61 64 76 69 63 65 20 69 73 20 74 68 61 my advice is tha
0370: 74 20 79 6f 75 27 72 65 20 62 65 73 74 20 6f 66 t you're best of
0380: 66 20 70 72 6f 67 72 61 6d 6d 69 6e 67 20 73 74 f programming st
0390: 72 61 69 67 68 74 20 74 6f 20 74 68 65 0a 20 20 raight to the.
03a0: 20 20 4d 79 53 51 4c 20 43 20 41 50 49 20 72 61 MySQL C API ra
03b0: 74 68 65 72 20 74 68 61 6e 20 74 72 79 20 74 6f ther than try to
03c0: 20 6d 61 6b 65 20 4d 79 53 51 4c 2b 2b 20 62 75 make MySQL++ bu
03d0: 69 6c 64 2e 0a 0a 20 20 20 20 54 68 65 72 65 20 ild... There
03e0: 61 72 65 20 74 77 6f 20 73 65 74 73 20 6f 66 20 are two sets of
03f0: 2e 73 6c 6e 20 61 6e 64 20 2e 76 63 70 72 6f 6a .sln and .vcproj
0400: 20 66 69 6c 65 73 20 73 68 69 70 70 65 64 20 77 files shipped w
0410: 69 74 68 20 4d 79 53 51 4c 2b 2b 3a 0a 20 20 20 ith MySQL++:.
0420: 20 6f 6e 65 20 66 6f 72 20 56 69 73 75 61 6c 20 one for Visual
0430: 43 2b 2b 20 32 30 30 33 20 69 6e 20 74 68 65 20 C++ 2003 in the
0440: 76 63 32 30 30 33 20 73 75 62 64 69 72 65 63 74 vc2003 subdirect
0450: 6f 72 79 2c 20 61 6e 64 20 61 6e 6f 74 68 65 72 ory, and another
0460: 0a 20 20 20 20 73 65 74 20 66 6f 72 20 56 43 2b . set for VC+
0470: 2b 20 32 30 30 35 20 61 6e 64 20 6e 65 77 65 72 + 2005 and newer
0480: 20 69 6e 20 76 63 32 30 30 35 2e 20 20 54 68 65 in vc2005. The
0490: 20 6f 6e 6c 79 20 64 69 66 66 65 72 65 6e 63 65 only difference
04a0: 0a 20 20 20 20 62 65 74 77 65 65 6e 20 74 68 65 . between the
04b0: 6d 20 69 73 20 74 68 61 74 20 74 68 65 20 56 43 m is that the VC
04c0: 2b 2b 20 32 30 30 33 20 76 65 72 73 69 6f 6e 73 ++ 2003 versions
04d0: 20 6f 6d 69 74 20 53 53 51 4c 53 20 72 65 6c 61 omit SSQLS rela
04e0: 74 65 64 0a 20 20 20 20 66 69 6c 65 73 20 66 72 ted. files fr
04f0: 6f 6d 20 74 68 65 20 62 75 69 6c 64 2e 20 20 49 om the build. I
0500: 66 20 79 6f 75 27 72 65 20 75 73 69 6e 67 20 56 f you're using V
0510: 43 2b 2b 20 32 30 30 38 2c 20 75 73 65 20 74 68 C++ 2008, use th
0520: 65 20 76 63 32 30 30 35 0a 20 20 20 20 70 72 6f e vc2005. pro
0530: 6a 65 63 74 20 66 69 6c 65 73 3b 20 56 69 73 75 ject files; Visu
0540: 61 6c 20 53 74 75 64 69 6f 20 77 69 6c 6c 20 77 al Studio will w
0550: 61 6c 6b 20 79 6f 75 20 74 68 72 6f 75 67 68 20 alk you through
0560: 74 68 65 20 63 6f 6e 76 65 72 73 69 6f 6e 0a 20 the conversion.
0570: 20 20 20 70 72 6f 63 65 73 73 2c 20 77 68 69 63 process, whic
0580: 68 20 77 69 6c 6c 20 64 6f 20 74 68 65 20 72 69 h will do the ri
0590: 67 68 74 20 74 68 69 6e 67 2e 0a 0a 0a 50 72 65 ght thing....Pre
05a0: 72 65 71 75 69 73 69 74 65 73 0a 7e 7e 7e 7e 7e requisites.~~~~~
05b0: 7e 7e 7e 7e 7e 7e 7e 7e 0a 20 20 20 20 59 6f 75 ~~~~~~~~. You
05c0: 20 6e 65 65 64 20 74 6f 20 68 61 76 65 20 74 68 need to have th
05d0: 65 20 57 69 6e 64 6f 77 73 20 76 65 72 73 69 6f e Windows versio
05e0: 6e 20 6f 66 20 74 68 65 20 4d 79 53 51 4c 20 73 n of the MySQL s
05f0: 65 72 76 65 72 20 69 6e 73 74 61 6c 6c 65 64 0a erver installed.
0600: 20 20 20 20 6f 6e 20 79 6f 75 72 20 64 65 76 65 on your deve
0610: 6c 6f 70 6d 65 6e 74 20 73 79 73 74 65 6d 2c 20 lopment system,
0620: 65 76 65 6e 20 69 66 20 79 6f 75 20 61 6c 77 61 even if you alwa
0630: 79 73 20 61 63 63 65 73 73 20 61 20 4d 79 53 51 ys access a MySQ
0640: 4c 0a 20 20 20 20 73 65 72 76 65 72 20 6f 6e 20 L. server on
0650: 61 20 64 69 66 66 65 72 65 6e 74 20 6d 61 63 68 a different mach
0660: 69 6e 65 2e 20 20 54 68 69 73 20 69 73 20 62 65 ine. This is be
0670: 63 61 75 73 65 20 69 6e 20 61 64 64 69 74 69 6f cause in additio
0680: 6e 20 74 6f 0a 20 20 20 20 69 6e 73 74 61 6c 6c n to. install
0690: 69 6e 67 20 74 68 65 20 73 65 72 76 65 72 20 69 ing the server i
06a0: 74 73 65 6c 66 2c 20 74 68 65 20 6f 66 66 69 63 tself, the offic
06b0: 69 61 6c 20 4d 79 53 51 4c 20 57 69 6e 64 6f 77 ial MySQL Window
06c0: 73 20 62 69 6e 61 72 69 65 73 0a 20 20 20 20 61 s binaries. a
06d0: 6c 73 6f 20 69 6e 73 74 61 6c 6c 20 74 68 65 20 lso install the
06e0: 63 6c 69 65 6e 74 2d 73 69 64 65 20 64 65 76 65 client-side deve
06f0: 6c 6f 70 6d 65 6e 74 20 66 69 6c 65 73 20 74 68 lopment files th
0700: 61 74 20 4d 79 53 51 4c 2b 2b 0a 20 20 20 20 6e at MySQL++. n
0710: 65 65 64 73 20 69 6e 20 6f 72 64 65 72 20 74 6f eeds in order to
0720: 20 63 6f 6d 6d 75 6e 69 63 61 74 65 20 77 69 74 communicate wit
0730: 68 20 61 20 4d 79 53 51 4c 20 73 65 72 76 65 72 h a MySQL server
0740: 2e 0a 0a 20 20 20 20 59 6f 75 20 68 61 76 65 20 ... You have
0750: 74 6f 20 64 6f 20 61 20 43 75 73 74 6f 6d 20 69 to do a Custom i
0760: 6e 73 74 61 6c 6c 20 74 6f 20 65 6e 61 62 6c 65 nstall to enable
0770: 20 69 6e 73 74 61 6c 6c 61 74 69 6f 6e 20 6f 66 installation of
0780: 20 74 68 65 73 65 0a 20 20 20 20 64 65 76 65 6c these. devel
0790: 6f 70 6d 65 6e 74 20 66 69 6c 65 73 2e 20 20 49 opment files. I
07a0: 66 20 79 6f 75 20 67 65 74 20 61 6e 20 65 72 72 f you get an err
07b0: 6f 72 20 61 62 6f 75 74 20 6d 79 73 71 6c 2d 76 or about mysql-v
07c0: 65 72 73 69 6f 6e 2e 68 20 6f 72 0a 20 20 20 20 ersion.h or.
07d0: 6d 79 73 71 6c 2e 68 20 77 68 65 6e 20 62 75 69 mysql.h when bui
07e0: 6c 64 69 6e 67 20 4d 79 53 51 4c 2b 2b 2c 20 67 lding MySQL++, g
07f0: 6f 20 62 61 63 6b 20 61 6e 64 20 72 65 69 6e 73 o back and reins
0800: 74 61 6c 6c 20 74 68 65 20 4d 79 53 51 4c 0a 20 tall the MySQL.
0810: 20 20 20 73 65 72 76 65 72 2c 20 70 61 79 69 6e server, payin
0820: 67 20 63 61 72 65 66 75 6c 20 61 74 74 65 6e 74 g careful attent
0830: 69 6f 6e 20 74 6f 20 74 68 65 20 6f 70 74 69 6f ion to the optio
0840: 6e 73 2e 0a 0a 20 20 20 20 49 66 20 79 6f 75 27 ns... If you'
0850: 76 65 20 69 6e 73 74 61 6c 6c 65 64 20 74 68 65 ve installed the
0860: 20 64 65 76 65 6c 6f 70 6d 65 6e 74 20 66 69 6c development fil
0870: 65 73 20 61 6e 64 20 61 72 65 20 73 74 69 6c 6c es and are still
0880: 20 67 65 74 74 69 6e 67 0a 20 20 20 20 68 65 61 getting. hea
0890: 64 65 72 20 66 69 6c 65 20 69 6e 63 6c 75 64 65 der file include
08a0: 20 65 72 72 6f 72 73 2c 20 72 65 61 64 20 6f 6e errors, read on
08b0: 2e 0a 0a 0a 42 75 69 6c 64 69 6e 67 20 74 68 65 ....Building the
08c0: 20 4c 69 62 72 61 72 79 20 61 6e 64 20 45 78 61 Library and Exa
08d0: 6d 70 6c 65 20 50 72 6f 67 72 61 6d 73 0a 7e 7e mple Programs.~~
08e0: 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e ~~~~~~~~~~~~~~~~
08f0: 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e ~~~~~~~~~~~~~~~~
0900: 7e 7e 7e 7e 7e 7e 7e 0a 20 20 20 20 49 66 20 79 ~~~~~~~. If y
0910: 6f 75 20 69 6e 73 74 61 6c 6c 65 64 20 74 68 65 ou installed the
0920: 20 4d 79 53 51 4c 20 73 65 72 76 65 72 20 73 6f MySQL server so
0930: 6d 65 77 68 65 72 65 20 6f 74 68 65 72 20 74 68 mewhere other th
0940: 61 6e 20 0a 20 20 20 20 0a 20 20 20 20 20 20 20 an . .
0950: 20 43 3a 5c 50 72 6f 67 72 61 6d 20 46 69 6c 65 C:\Program File
0960: 73 5c 4d 79 53 51 4c 5c 4d 79 53 51 4c 20 53 65 s\MySQL\MySQL Se
0970: 72 76 65 72 20 35 2e 30 5c 0a 20 20 20 20 20 20 rver 5.0\.
0980: 20 20 0a 20 20 20 20 79 6f 75 20 6e 65 65 64 20 . you need
0990: 74 6f 20 63 68 61 6e 67 65 20 74 68 65 20 70 72 to change the pr
09a0: 6f 6a 65 63 74 20 66 69 6c 65 20 73 65 74 74 69 oject file setti
09b0: 6e 67 73 2e 20 20 49 66 20 79 6f 75 27 72 65 20 ngs. If you're
09c0: 77 69 6c 6c 69 6e 67 20 74 6f 0a 20 20 20 20 69 willing to. i
09d0: 6e 73 74 61 6c 6c 20 42 61 6b 65 66 69 6c 65 20 nstall Bakefile
09e0: 28 73 65 65 20 62 65 6c 6f 77 29 2c 20 79 6f 75 (see below), you
09f0: 20 63 61 6e 20 64 6f 20 74 68 69 73 20 71 75 69 can do this qui
0a00: 63 6b 6c 79 20 62 79 20 63 68 61 6e 67 69 6e 67 ckly by changing
0a10: 0a 20 20 20 20 74 68 65 20 76 61 72 69 61 62 6c . the variabl
0a20: 65 20 4d 59 53 51 4c 5f 57 49 4e 5f 44 49 52 20 e MYSQL_WIN_DIR
0a30: 61 74 20 74 68 65 20 74 6f 70 20 6f 66 20 74 68 at the top of th
0a40: 65 20 66 69 6c 65 20 6d 79 73 71 6c 2b 2b 2e 62 e file mysql++.b
0a50: 6b 6c 2c 0a 20 20 20 20 74 68 65 6e 20 72 65 67 kl,. then reg
0a60: 65 6e 65 72 61 74 69 6e 67 20 74 68 65 20 70 72 enerating the pr
0a70: 6f 6a 65 63 74 20 66 69 6c 65 73 20 62 79 20 72 oject files by r
0a80: 75 6e 6e 69 6e 67 20 72 65 62 61 6b 65 2e 62 61 unning rebake.ba
0a90: 74 2e 0a 20 20 20 20 4f 74 68 65 72 77 69 73 65 t.. Otherwise
0aa0: 2c 20 79 6f 75 27 6c 6c 20 6e 65 65 64 20 74 6f , you'll need to
0ab0: 20 63 68 61 6e 67 65 20 74 68 65 20 69 6e 63 6c change the incl
0ac0: 75 64 65 20 61 6e 64 20 6c 69 62 72 61 72 79 20 ude and library
0ad0: 70 61 74 68 73 0a 20 20 20 20 69 6e 20 61 6c 6c paths. in all
0ae0: 20 6f 66 20 74 68 65 20 70 72 6f 6a 65 63 74 20 of the project
0af0: 66 69 6c 65 73 20 62 79 20 68 61 6e 64 2e 0a 0a files by hand...
0b00: 20 20 20 20 59 6f 75 20 6d 75 73 74 20 62 75 69 You must bui
0b10: 6c 64 20 62 6f 74 68 20 74 68 65 20 44 65 62 75 ld both the Debu
0b20: 67 20 61 6e 64 20 52 65 6c 65 61 73 65 20 76 65 g and Release ve
0b30: 72 73 69 6f 6e 73 20 6f 66 20 74 68 65 20 6c 69 rsions of the li
0b40: 62 72 61 72 79 2c 0a 20 20 20 20 62 65 63 61 75 brary,. becau
0b50: 73 65 20 61 20 72 65 6c 65 61 73 65 20 62 75 69 se a release bui
0b60: 6c 64 20 6f 66 20 79 6f 75 72 20 70 72 6f 67 72 ld of your progr
0b70: 61 6d 20 77 6f 6e 27 74 20 77 6f 72 6b 20 77 69 am won't work wi
0b80: 74 68 20 61 20 44 65 62 75 67 0a 20 20 20 20 76 th a Debug. v
0b90: 65 72 73 69 6f 6e 20 6f 66 20 74 68 65 20 4d 79 ersion of the My
0ba0: 53 51 4c 2b 2b 20 44 4c 4c 2e 20 20 53 69 6e 63 SQL++ DLL. Sinc
0bb0: 65 20 76 65 72 73 69 6f 6e 20 33 2e 30 2c 20 74 e version 3.0, t
0bc0: 68 65 20 56 43 2b 2b 20 62 75 69 6c 64 0a 20 20 he VC++ build.
0bd0: 20 20 6f 66 20 4d 79 53 51 4c 2b 2b 20 6e 61 6d of MySQL++ nam
0be0: 65 73 20 74 68 65 73 65 20 74 77 6f 20 44 4c 4c es these two DLL
0bf0: 73 20 64 69 66 66 65 72 65 6e 74 6c 79 3a 20 6d s differently: m
0c00: 79 73 71 6c 70 70 5f 64 2e 64 6c 6c 20 66 6f 72 ysqlpp_d.dll for
0c10: 0a 20 20 20 20 74 68 65 20 44 65 62 75 67 20 76 . the Debug v
0c20: 65 72 73 69 6f 6e 2c 20 61 6e 64 20 6d 79 73 71 ersion, and mysq
0c30: 6c 70 70 2e 64 6c 6c 20 66 6f 72 20 74 68 65 20 lpp.dll for the
0c40: 52 65 6c 65 61 73 65 20 76 65 72 73 69 6f 6e 2e Release version.
0c50: 0a 20 20 20 20 54 68 69 73 20 6c 65 74 73 20 79 . This lets y
0c60: 6f 75 20 6b 65 65 70 20 74 68 65 6d 20 69 6e 20 ou keep them in
0c70: 74 68 65 20 73 61 6d 65 20 50 41 54 48 20 64 69 the same PATH di
0c80: 72 65 63 74 6f 72 79 2c 20 77 69 74 68 6f 75 74 rectory, without
0c90: 20 61 0a 20 20 20 20 63 6f 6e 63 65 72 6e 20 61 a. concern a
0ca0: 73 20 74 6f 20 77 68 65 74 68 65 72 20 74 68 65 s to whether the
0cb0: 20 63 6f 72 72 65 63 74 20 6f 6e 65 20 77 69 6c correct one wil
0cc0: 6c 20 62 65 20 75 73 65 64 2e 0a 0a 20 20 20 20 l be used...
0cd0: 57 69 74 68 20 74 68 65 20 6c 69 62 72 61 72 79 With the library
0ce0: 20 62 75 69 6c 74 2c 20 72 75 6e 20 61 74 20 6c built, run at l
0cf0: 65 61 73 74 20 74 68 65 20 72 65 73 65 74 64 62 east the resetdb
0d00: 20 61 6e 64 20 73 69 6d 70 6c 65 31 0a 20 20 20 and simple1.
0d10: 20 65 78 61 6d 70 6c 65 73 20 74 6f 20 65 6e 73 examples to ens
0d20: 75 72 65 20 74 68 61 74 20 74 68 65 20 6c 69 62 ure that the lib
0d30: 72 61 72 79 20 69 73 20 77 6f 72 6b 69 6e 67 20 rary is working
0d40: 63 6f 72 72 65 63 74 6c 79 2e 0a 20 20 20 20 49 correctly.. I
0d50: 6e 20 61 64 64 69 74 69 6f 6e 20 74 6f 20 74 68 n addition to th
0d60: 65 20 6f 74 68 65 72 20 67 65 6e 65 72 69 63 20 e other generic
0d70: 65 78 61 6d 70 6c 65 73 2c 20 74 68 65 72 65 20 examples, there
0d80: 61 72 65 20 61 20 66 65 77 0a 20 20 20 20 56 69 are a few. Vi
0d90: 73 75 61 6c 20 43 2b 2b 20 73 70 65 63 69 66 69 sual C++ specifi
0da0: 63 20 65 78 61 6d 70 6c 65 73 20 74 68 61 74 20 c examples that
0db0: 79 6f 75 20 6d 69 67 68 74 20 77 61 6e 74 20 74 you might want t
0dc0: 6f 20 6c 6f 6f 6b 20 61 74 20 69 6e 0a 20 20 20 o look at in.
0dd0: 20 65 78 61 6d 70 6c 65 73 5c 76 73 74 75 64 69 examples\vstudi
0de0: 6f 2e 20 20 53 65 65 20 52 45 41 44 4d 45 2d 65 o. See README-e
0df0: 78 61 6d 70 6c 65 73 2e 74 78 74 20 66 6f 72 20 xamples.txt for
0e00: 66 75 72 74 68 65 72 20 64 65 74 61 69 6c 73 2e further details.
0e10: 0a 0a 20 20 20 20 4f 6e 63 65 20 79 6f 75 27 72 .. Once you'r
0e20: 65 20 73 75 72 65 20 74 68 65 20 6c 69 62 72 61 e sure the libra
0e30: 72 79 20 69 73 20 77 6f 72 6b 69 6e 67 20 63 6f ry is working co
0e40: 72 72 65 63 74 6c 79 2c 20 79 6f 75 20 63 61 6e rrectly, you can
0e50: 20 72 75 6e 0a 20 20 20 20 74 68 65 20 69 6e 73 run. the ins
0e60: 74 61 6c 6c 2e 68 74 61 20 66 69 6c 65 20 61 74 tall.hta file at
0e70: 20 74 68 65 20 70 72 6f 6a 65 63 74 20 72 6f 6f the project roo
0e80: 74 20 74 6f 20 69 6e 73 74 61 6c 6c 20 74 68 65 t to install the
0e90: 20 6c 69 62 72 61 72 79 0a 20 20 20 20 66 69 6c library. fil
0ea0: 65 73 20 61 6e 64 20 68 65 61 64 65 72 73 20 69 es and headers i
0eb0: 6e 20 61 20 64 69 72 65 63 74 6f 72 79 20 6f 66 n a directory of
0ec0: 20 79 6f 75 72 20 63 68 6f 6f 73 69 6e 67 2e 0a your choosing..
0ed0: 20 20 20 20 0a 20 20 20 20 28 41 73 69 64 65 3a . (Aside:
0ee0: 20 59 6f 75 20 6d 61 79 20 6e 6f 74 20 68 61 76 You may not hav
0ef0: 65 20 63 6f 6d 65 20 61 63 72 6f 73 73 20 74 68 e come across th
0f00: 65 20 2e 68 74 61 20 65 78 74 65 6e 73 69 6f 6e e .hta extension
0f10: 20 62 65 66 6f 72 65 2e 0a 20 20 20 20 49 74 27 before.. It'
0f20: 73 20 66 6f 72 20 61 20 72 61 72 65 6c 79 2d 75 s for a rarely-u
0f30: 73 65 64 20 66 65 61 74 75 72 65 20 6f 66 20 4d sed feature of M
0f40: 69 63 72 6f 73 6f 66 74 27 73 20 49 6e 74 65 72 icrosoft's Inter
0f50: 6e 65 74 20 45 78 70 6c 6f 72 65 72 2c 0a 20 20 net Explorer,.
0f60: 20 20 63 61 6c 6c 65 64 20 48 54 4d 4c 20 41 70 called HTML Ap
0f70: 70 6c 69 63 61 74 69 6f 6e 73 2e 20 20 4b 6e 6f plications. Kno
0f80: 77 20 77 68 61 74 20 41 64 6f 62 65 20 41 49 52 w what Adobe AIR
0f90: 20 69 73 3f 20 20 4b 69 6e 64 61 20 6c 69 6b 65 is? Kinda like
0fa0: 0a 20 20 20 20 74 68 61 74 2c 20 6f 6e 6c 79 20 . that, only
0fb0: 77 69 74 68 6f 75 74 20 74 68 65 20 63 6f 6d 70 without the comp
0fc0: 69 6c 61 74 69 6f 6e 20 69 6e 74 6f 20 61 20 73 ilation into a s
0fd0: 69 6e 67 6c 65 20 62 69 6e 61 72 79 20 62 6c 6f ingle binary blo
0fe0: 62 2c 0a 20 20 20 20 74 68 65 20 63 72 6f 73 73 b,. the cross
0ff0: 2d 70 6c 61 74 66 6f 72 6d 20 63 6f 6d 70 61 74 -platform compat
1000: 69 62 69 6c 69 74 79 2c 20 61 6e 64 20 74 68 65 ibility, and the
1010: 20 70 6f 77 65 72 20 6f 66 20 46 6c 61 73 68 20 power of Flash
1020: 61 6e 64 0a 20 20 20 20 41 63 74 69 6f 6e 53 63 and. ActionSc
1030: 72 69 70 74 20 33 2e 20 20 54 68 65 73 65 20 6c ript 3. These l
1040: 69 6d 69 74 61 74 69 6f 6e 73 20 64 6f 6e 27 74 imitations don't
1050: 20 63 61 75 73 65 20 61 20 70 72 6f 62 6c 65 6d cause a problem
1060: 20 68 65 72 65 2e 0a 20 20 20 20 49 6e 20 66 61 here.. In fa
1070: 63 74 2c 20 41 49 52 20 77 6f 75 6c 64 20 62 65 ct, AIR would be
1080: 20 76 61 73 74 20 6f 76 65 72 6b 69 6c 6c 20 68 vast overkill h
1090: 65 72 65 2e 20 20 4a 75 73 74 20 6f 70 65 6e 20 ere. Just open
10a0: 69 6e 73 74 61 6c 6c 2e 68 74 61 0a 20 20 20 20 install.hta.
10b0: 69 6e 20 61 20 74 65 78 74 20 65 64 69 74 6f 72 in a text editor
10c0: 20 74 6f 20 73 65 65 20 68 6f 77 20 69 74 20 77 to see how it w
10d0: 6f 72 6b 73 2e 29 0a 0a 0a 55 73 69 6e 67 20 4d orks.)...Using M
10e0: 79 53 51 4c 2b 2b 20 69 6e 20 61 6e 20 4d 46 43 ySQL++ in an MFC
10f0: 20 50 72 6f 6a 65 63 74 0a 7e 7e 7e 7e 7e 7e 7e Project.~~~~~~~
1100: 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e ~~~~~~~~~~~~~~~~
1110: 7e 7e 7e 7e 7e 7e 7e 7e 0a 20 20 20 20 49 66 20 ~~~~~~~~. If
1120: 79 6f 75 20 64 6f 6e 27 74 20 61 6c 72 65 61 64 you don't alread
1130: 79 20 68 61 76 65 20 61 20 70 72 6f 6a 65 63 74 y have a project
1140: 20 73 65 74 20 75 70 2c 20 6f 70 65 6e 20 56 69 set up, open Vi
1150: 73 75 61 6c 20 53 74 75 64 69 6f 2c 0a 20 20 20 sual Studio,.
1160: 20 73 61 79 20 46 69 6c 65 20 3e 20 4e 65 77 20 say File > New
1170: 3e 20 50 72 6f 6a 65 63 74 2c 20 74 68 65 6e 20 > Project, then
1180: 63 68 6f 6f 73 65 20 56 69 73 75 61 6c 20 43 2b choose Visual C+
1190: 2b 20 3e 20 4d 46 43 20 3e 20 4d 46 43 0a 20 20 + > MFC > MFC.
11a0: 20 20 41 70 70 6c 69 63 61 74 69 6f 6e 2e 20 20 Application.
11b0: 47 6f 20 74 68 72 6f 75 67 68 20 74 68 65 20 77 Go through the w
11c0: 69 7a 61 72 64 20 73 65 74 74 69 6e 67 20 75 70 izard setting up
11d0: 20 74 68 65 20 70 72 6f 6a 65 63 74 20 61 73 0a the project as.
11e0: 20 20 20 20 79 6f 75 20 73 65 65 20 66 69 74 2e you see fit.
11f0: 0a 0a 20 20 20 20 4f 6e 63 65 20 79 6f 75 20 68 .. Once you h
1200: 61 76 65 20 79 6f 75 72 20 70 72 6f 6a 65 63 74 ave your project
1210: 20 6f 70 65 6e 2c 20 72 69 67 68 74 20 63 6c 69 open, right cli
1220: 63 6b 20 6f 6e 20 79 6f 75 72 20 74 6f 70 2d 6c ck on your top-l
1230: 65 76 65 6c 0a 20 20 20 20 65 78 65 63 75 74 61 evel. executa
1240: 62 6c 65 20 69 6e 20 74 68 65 20 53 6f 6c 75 74 ble in the Solut
1250: 69 6f 6e 20 45 78 70 6c 6f 72 65 72 2c 20 63 68 ion Explorer, ch
1260: 6f 6f 73 65 20 50 72 6f 70 65 72 74 69 65 73 2c oose Properties,
1270: 20 61 6e 64 20 6d 61 6b 65 0a 20 20 20 20 74 68 and make. th
1280: 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 63 68 61 6e e following chan
1290: 67 65 73 2e 20 20 28 57 68 65 72 65 20 69 74 20 ges. (Where it
12a0: 64 6f 65 73 6e 27 74 20 73 70 65 63 69 66 79 20 doesn't specify
12b0: 44 65 62 75 67 20 6f 72 20 52 65 6c 65 61 73 65 Debug or Release
12c0: 2c 0a 20 20 20 20 6d 61 6b 65 20 74 68 65 20 73 ,. make the s
12d0: 61 6d 65 20 63 68 61 6e 67 65 20 74 6f 20 62 6f ame change to bo
12e0: 74 68 20 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e th configuration
12f0: 73 2e 29 0a 0a 20 20 20 20 20 20 20 20 6f 20 41 s.).. o A
1300: 70 70 65 6e 64 20 74 68 65 20 66 6f 6c 6c 6f 77 ppend the follow
1310: 69 6e 67 20 74 6f 20 43 2f 43 2b 2b 20 3e 20 47 ing to C/C++ > G
1320: 65 6e 65 72 61 6c 20 3e 20 41 64 64 69 74 69 6f eneral > Additio
1330: 6e 61 6c 20 49 6e 63 6c 75 64 65 0a 20 20 20 20 nal Include.
1340: 20 20 20 20 20 20 44 69 72 65 63 74 6f 72 69 65 Directorie
1350: 73 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 s:..
1360: 43 3a 5c 50 72 6f 67 72 61 6d 20 46 69 6c 65 73 C:\Program Files
1370: 5c 4d 79 53 51 4c 5c 4d 79 53 51 4c 20 53 65 72 \MySQL\MySQL Ser
1380: 76 65 72 20 35 2e 30 5c 69 6e 63 6c 75 64 65 2c ver 5.0\include,
1390: 0a 20 20 20 20 20 20 20 20 20 20 20 20 43 3a 5c . C:\
13a0: 6d 79 73 71 6c 2b 2b 5c 69 6e 63 6c 75 64 65 0a mysql++\include.
13b0: 0a 20 20 20 20 20 20 20 20 6f 20 55 6e 64 65 72 . o Under
13c0: 20 43 2f 43 2b 2b 20 3e 20 43 6f 64 65 20 47 65 C/C++ > Code Ge
13d0: 6e 65 72 61 74 69 6f 6e 20 63 68 61 6e 67 65 20 neration change
13e0: 22 52 75 6e 74 69 6d 65 20 4c 69 62 72 61 72 79 "Runtime Library
13f0: 22 20 74 6f 0a 20 20 20 20 20 20 20 20 20 20 22 " to. "
1400: 4d 75 6c 74 69 2d 74 68 72 65 61 64 65 64 20 44 Multi-threaded D
1410: 65 62 75 67 20 44 4c 4c 20 28 2f 4d 44 64 29 22 ebug DLL (/MDd)"
1420: 20 66 6f 72 20 74 68 65 20 44 65 62 75 67 0a 20 for the Debug.
1430: 20 20 20 20 20 20 20 20 20 63 6f 6e 66 69 67 75 configu
1440: 72 61 74 69 6f 6e 2e 20 20 46 6f 72 20 74 68 65 ration. For the
1450: 20 52 65 6c 65 61 73 65 20 63 6f 6e 66 69 67 75 Release configu
1460: 72 61 74 69 6f 6e 2c 20 6d 61 6b 65 20 69 74 0a ration, make it.
1470: 20 20 20 20 20 20 20 20 20 20 22 4d 75 6c 74 69 "Multi
1480: 2d 74 68 72 65 61 64 65 64 20 44 4c 4c 20 28 2f -threaded DLL (/
1490: 4d 44 29 22 2e 0a 0a 20 20 20 20 20 20 20 20 6f MD)"... o
14a0: 20 41 70 70 65 6e 64 20 74 68 65 20 66 6f 6c 6c Append the foll
14b0: 6f 77 69 6e 67 20 74 6f 20 4c 69 6e 6b 65 72 20 owing to Linker
14c0: 3e 20 47 65 6e 65 72 61 6c 20 3e 20 41 64 64 69 > General > Addi
14d0: 74 69 6f 6e 61 6c 20 4c 69 62 72 61 72 79 0a 20 tional Library.
14e0: 20 20 20 20 20 20 20 20 20 44 69 72 65 63 74 6f Directo
14f0: 72 69 65 73 20 66 6f 72 20 74 68 65 20 44 65 62 ries for the Deb
1500: 75 67 20 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e ug configuration
1510: 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 43 :.. C
1520: 3a 5c 50 72 6f 67 72 61 6d 20 46 69 6c 65 73 5c :\Program Files\
1530: 4d 79 53 51 4c 5c 4d 79 53 51 4c 20 53 65 72 76 MySQL\MySQL Serv
1540: 65 72 20 35 2e 30 5c 6c 69 62 5c 64 65 62 75 67 er 5.0\lib\debug
1550: 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 43 3a ,. C:
1560: 5c 6d 79 73 71 6c 2b 2b 5c 76 63 5c 64 65 62 75 \mysql++\vc\debu
1570: 67 0a 0a 20 20 20 20 20 20 20 20 20 20 46 6f 72 g.. For
1580: 20 74 68 65 20 52 65 6c 65 61 73 65 20 63 6f 6e the Release con
1590: 66 69 67 75 72 61 74 69 6f 6e 2c 20 6d 61 6b 65 figuration, make
15a0: 20 69 74 20 74 68 65 20 73 61 6d 65 2c 20 62 75 it the same, bu
15b0: 74 0a 20 20 20 20 20 20 20 20 20 20 63 68 61 6e t. chan
15c0: 67 65 20 74 68 65 20 27 64 65 62 75 67 27 20 64 ge the 'debug' d
15d0: 69 72 65 63 74 6f 72 79 20 6e 61 6d 65 73 20 74 irectory names t
15e0: 6f 20 27 6f 70 74 27 2e 0a 0a 20 20 20 20 20 20 o 'opt'...
15f0: 20 20 6f 20 55 6e 64 65 72 20 4c 69 6e 6b 65 72 o Under Linker
1600: 20 3e 20 49 6e 70 75 74 20 61 64 64 20 74 68 65 > Input add the
1610: 20 66 6f 6c 6c 6f 77 69 6e 67 20 74 6f 20 22 41 following to "A
1620: 64 64 69 74 69 6f 6e 61 6c 0a 20 20 20 20 20 20 dditional.
1630: 20 20 20 20 44 65 70 65 6e 64 65 6e 63 69 65 73 Dependencies
1640: 22 20 66 6f 72 20 74 68 65 20 44 65 62 75 67 20 " for the Debug
1650: 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 3a 0a 0a configuration:..
1660: 20 20 20 20 20 20 20 20 20 20 20 20 6c 69 62 6d libm
1670: 79 73 71 6c 2e 6c 69 62 20 77 73 6f 63 6b 33 32 ysql.lib wsock32
1680: 2e 6c 69 62 20 6d 79 73 71 6c 70 70 5f 64 2e 6c .lib mysqlpp_d.l
1690: 69 62 0a 0a 20 20 20 20 20 20 20 20 20 20 2e 2e ib.. ..
16a0: 2e 61 6e 64 20 74 68 65 6e 20 66 6f 72 20 74 68 .and then for th
16b0: 65 20 52 65 6c 65 61 73 65 20 63 6f 6e 66 69 67 e Release config
16c0: 75 72 61 74 69 6f 6e 3a 0a 20 20 20 20 20 20 20 uration:.
16d0: 20 20 20 0a 20 20 20 20 20 20 20 20 20 20 20 20 .
16e0: 6c 69 62 6d 79 73 71 6c 2e 6c 69 62 20 77 73 6f libmysql.lib wso
16f0: 63 6b 33 32 2e 6c 69 62 20 6d 79 73 71 6c 70 70 ck32.lib mysqlpp
1700: 2e 6c 69 62 0a 0a 20 20 20 20 20 20 20 20 20 20 .lib..
1710: 54 68 69 73 20 64 69 66 66 65 72 65 6e 63 65 20 This difference
1720: 69 73 20 62 65 63 61 75 73 65 20 4d 79 53 51 4c is because MySQL
1730: 2b 2b 27 73 20 44 65 62 75 67 20 44 4c 4c 20 61 ++'s Debug DLL a
1740: 6e 64 20 69 6d 70 6f 72 74 0a 20 20 20 20 20 20 nd import.
1750: 20 20 20 20 6c 69 62 72 61 72 79 20 68 61 76 65 library have
1760: 20 61 20 5f 64 20 73 75 66 66 69 78 20 73 6f 20 a _d suffix so
1770: 79 6f 75 20 63 61 6e 20 68 61 76 65 20 62 6f 74 you can have bot
1780: 68 20 69 6e 20 74 68 65 20 73 61 6d 65 0a 20 20 h in the same.
1790: 20 20 20 20 20 20 20 20 64 69 72 65 63 74 6f 72 director
17a0: 79 20 77 69 74 68 6f 75 74 20 63 6f 6e 66 6c 69 y without confli
17b0: 63 74 73 2e 0a 0a 20 20 20 20 59 6f 75 20 6d 61 cts... You ma
17c0: 79 20 77 61 6e 74 20 74 6f 20 73 74 75 64 79 20 y want to study
17d0: 65 78 61 6d 70 6c 65 73 5c 76 73 74 75 64 69 6f examples\vstudio
17e0: 5c 6d 66 63 5c 6d 66 63 2e 76 63 70 72 6f 6a 20 \mfc\mfc.vcproj
17f0: 74 6f 20 73 65 65 0a 20 20 20 20 74 68 69 73 20 to see. this
1800: 69 6e 20 61 63 74 69 6f 6e 2e 20 20 4e 6f 74 65 in action. Note
1810: 20 74 68 61 74 20 73 6f 6d 65 20 6f 66 20 74 68 that some of th
1820: 65 20 70 61 74 68 73 20 77 69 6c 6c 20 62 65 20 e paths will be
1830: 64 69 66 66 65 72 65 6e 74 2c 0a 20 20 20 20 62 different,. b
1840: 65 63 61 75 73 65 20 69 74 20 63 61 6e 20 75 73 ecause it can us
1850: 65 20 72 65 6c 61 74 69 76 65 20 70 61 74 68 73 e relative paths
1860: 20 66 6f 72 20 6d 79 73 71 6c 70 70 2e 64 6c 6c for mysqlpp.dll
1870: 2e 0a 0a 0a 55 73 69 6e 67 20 4d 79 53 51 4c 2b ....Using MySQL+
1880: 2b 20 69 6e 20 61 20 57 69 6e 64 6f 77 73 20 46 + in a Windows F
1890: 6f 72 6d 73 20 43 2b 2b 2f 43 4c 49 20 50 72 6f orms C++/CLI Pro
18a0: 6a 65 63 74 0a 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e ject.~~~~~~~~~~~
18b0: 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e ~~~~~~~~~~~~~~~~
18c0: 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e ~~~~~~~~~~~~~~~~
18d0: 7e 7e 7e 7e 7e 0a 20 20 20 20 42 65 66 6f 72 65 ~~~~~. Before
18e0: 20 79 6f 75 20 73 74 61 72 74 20 77 6f 72 6b 20 you start work
18f0: 6f 6e 20 67 65 74 74 69 6e 67 20 4d 79 53 51 4c on getting MySQL
1900: 2b 2b 20 77 6f 72 6b 69 6e 67 20 77 69 74 68 20 ++ working with
1910: 79 6f 75 72 20 6f 77 6e 0a 20 20 20 20 70 72 6f your own. pro
1920: 67 72 61 6d 2c 20 79 6f 75 20 6e 65 65 64 20 74 gram, you need t
1930: 6f 20 6d 61 6b 65 20 73 6f 6d 65 20 63 68 61 6e o make some chan
1940: 67 65 73 20 74 6f 20 74 68 65 20 4d 79 53 51 4c ges to the MySQL
1950: 2b 2b 20 62 75 69 6c 64 0a 20 20 20 20 73 65 74 ++ build. set
1960: 74 69 6e 67 73 2e 20 20 4f 70 65 6e 20 6d 79 73 tings. Open mys
1970: 71 6c 70 70 2e 73 6c 6e 2c 20 74 68 65 6e 20 72 qlpp.sln, then r
1980: 69 67 68 74 2d 63 6c 69 63 6b 20 6f 6e 20 74 68 ight-click on th
1990: 65 20 6d 79 73 71 6c 70 70 0a 20 20 20 20 74 61 e mysqlpp. ta
19a0: 72 67 65 74 20 61 6e 64 20 73 65 6c 65 63 74 20 rget and select
19b0: 50 72 6f 70 65 72 74 69 65 73 2e 20 20 4d 61 6b Properties. Mak
19c0: 65 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 e the following
19d0: 63 68 61 6e 67 65 73 20 66 6f 72 0a 20 20 20 20 changes for.
19e0: 62 6f 74 68 20 74 68 65 20 44 65 62 75 67 20 61 both the Debug a
19f0: 6e 64 20 52 65 6c 65 61 73 65 20 63 6f 6e 66 69 nd Release confi
1a00: 67 75 72 61 74 69 6f 6e 73 3a 0a 0a 20 20 20 20 gurations:..
1a10: 20 20 20 20 6f 20 55 6e 64 65 72 20 43 6f 6e 66 o Under Conf
1a20: 69 67 75 72 61 74 69 6f 6e 20 50 72 6f 70 65 72 iguration Proper
1a30: 74 69 65 73 20 3e 20 47 65 6e 65 72 61 6c 2c 20 ties > General,
1a40: 63 68 61 6e 67 65 20 22 43 6f 6d 6d 6f 6e 0a 20 change "Common.
1a50: 20 20 20 20 20 20 20 20 20 4c 61 6e 67 75 61 67 Languag
1a60: 65 20 52 75 6e 74 69 6d 65 20 73 75 70 70 6f 72 e Runtime suppor
1a70: 74 22 20 74 6f 20 74 68 65 20 2f 63 6c 72 20 73 t" to the /clr s
1a80: 65 74 74 69 6e 67 2e 0a 0a 20 20 20 20 20 20 20 etting...
1a90: 20 6f 20 55 6e 64 65 72 20 43 2f 43 2b 2b 20 3e o Under C/C++ >
1aa0: 20 43 6f 64 65 20 47 65 6e 65 72 61 74 69 6f 6e Code Generation
1ab0: 2c 20 63 68 61 6e 67 65 20 22 45 6e 61 62 6c 65 , change "Enable
1ac0: 20 43 2b 2b 20 45 78 63 65 70 74 69 6f 6e 73 22 C++ Exceptions"
1ad0: 0a 20 20 20 20 20 20 20 20 20 20 66 72 6f 6d 20 . from
1ae0: 22 59 65 73 20 28 2f 45 48 73 63 29 22 20 74 6f "Yes (/EHsc)" to
1af0: 20 22 59 65 73 20 57 69 74 68 20 53 45 48 20 45 "Yes With SEH E
1b00: 78 63 65 70 74 69 6f 6e 73 20 28 2f 45 48 61 29 xceptions (/EHa)
1b10: 22 0a 0a 20 20 20 20 49 66 20 79 6f 75 20 68 61 ".. If you ha
1b20: 76 65 20 61 6c 72 65 61 64 79 20 62 75 69 6c 74 ve already built
1b30: 20 4d 79 53 51 4c 2b 2b 2c 20 62 65 20 73 75 72 MySQL++, be sur
1b40: 65 20 74 6f 20 70 65 72 66 6f 72 6d 20 61 20 63 e to perform a c
1b50: 6f 6d 70 6c 65 74 65 0a 20 20 20 20 72 65 62 75 omplete. rebu
1b60: 69 6c 64 20 61 66 74 65 72 20 63 68 61 6e 67 69 ild after changi
1b70: 6e 67 20 74 68 65 73 65 20 6f 70 74 69 6f 6e 73 ng these options
1b80: 2e 20 20 54 68 65 20 63 6f 6d 70 69 6c 65 72 20 . The compiler
1b90: 77 69 6c 6c 20 65 6d 69 74 0a 20 20 20 20 73 65 will emit. se
1ba0: 76 65 72 61 6c 20 43 34 38 33 35 20 77 61 72 6e veral C4835 warn
1bb0: 69 6e 67 73 20 61 66 74 65 72 20 6d 61 6b 69 6e ings after makin
1bc0: 67 20 74 68 6f 73 65 20 63 68 61 6e 67 65 73 2c g those changes,
1bd0: 20 77 68 69 63 68 20 61 72 65 0a 20 20 20 20 68 which are. h
1be0: 61 72 6d 6c 65 73 73 20 77 68 65 6e 20 75 73 69 armless when usi
1bf0: 6e 67 20 74 68 65 20 44 4c 4c 20 77 69 74 68 20 ng the DLL with
1c00: 61 20 43 2b 2b 2f 43 4c 49 20 70 72 6f 67 72 61 a C++/CLI progra
1c10: 6d 2c 20 62 75 74 20 77 68 69 63 68 0a 20 20 20 m, but which.
1c20: 20 77 61 72 6e 20 6f 66 20 72 65 61 6c 20 70 72 warn of real pr
1c30: 6f 62 6c 65 6d 73 20 77 68 65 6e 20 75 73 69 6e oblems when usin
1c40: 67 20 69 74 20 77 69 74 68 20 75 6e 6d 61 6e 61 g it with unmana
1c50: 67 65 64 20 43 2b 2b 2e 20 20 54 68 69 73 20 69 ged C++. This i
1c60: 73 0a 20 20 20 20 77 68 79 20 4d 79 53 51 4c 2b s. why MySQL+
1c70: 2b 27 73 20 57 69 6e 64 6f 77 73 20 69 6e 73 74 +'s Windows inst
1c80: 61 6c 6c 65 72 20 28 69 6e 73 74 61 6c 6c 2e 68 aller (install.h
1c90: 74 61 29 20 6f 66 66 65 72 73 20 74 68 65 20 6f ta) offers the o
1ca0: 70 74 69 6f 6e 0a 20 20 20 20 74 6f 20 69 6e 73 ption. to ins
1cb0: 74 61 6c 6c 20 74 68 65 20 43 4c 52 20 76 65 72 tall the CLR ver
1cc0: 73 69 6f 6e 20 69 6e 74 6f 20 61 20 73 65 70 61 sion into a sepa
1cd0: 72 61 74 65 20 64 69 72 65 63 74 6f 72 79 3b 20 rate directory;
1ce0: 75 73 65 20 69 74 20 69 66 0a 20 20 20 20 79 6f use it if. yo
1cf0: 75 20 6e 65 65 64 20 62 6f 74 68 20 6d 61 6e 61 u need both mana
1d00: 67 65 64 20 61 6e 64 20 75 6e 6d 61 6e 61 67 65 ged and unmanage
1d10: 64 20 76 65 72 73 69 6f 6e 73 20 69 6e 73 74 61 d versions insta
1d20: 6c 6c 65 64 21 0a 0a 20 20 20 20 46 6f 72 20 74 lled!.. For t
1d30: 68 65 20 73 61 6d 65 20 72 65 61 73 6f 6e 2c 20 he same reason,
1d40: 79 6f 75 20 6d 69 67 68 74 20 67 69 76 65 20 73 you might give s
1d50: 6f 6d 65 20 74 68 6f 75 67 68 74 20 61 62 6f 75 ome thought abou
1d60: 74 20 77 68 65 72 65 20 79 6f 75 0a 20 20 20 20 t where you.
1d70: 69 6e 73 74 61 6c 6c 20 6d 79 73 71 6c 70 70 2e install mysqlpp.
1d80: 64 6c 6c 20 6f 6e 20 79 6f 75 72 20 65 6e 64 20 dll on your end
1d90: 75 73 65 72 27 73 20 6d 61 63 68 69 6e 65 73 20 user's machines
1da0: 77 68 65 6e 20 64 69 73 74 72 69 62 75 74 69 6e when distributin
1db0: 67 0a 20 20 20 20 79 6f 75 72 20 70 72 6f 67 72 g. your progr
1dc0: 61 6d 2e 20 20 4d 79 20 72 65 63 6f 6d 6d 65 6e am. My recommen
1dd0: 64 61 74 69 6f 6e 20 69 73 20 74 6f 20 69 6e 73 dation is to ins
1de0: 74 61 6c 6c 20 69 74 20 69 6e 20 74 68 65 20 73 tall it in the s
1df0: 61 6d 65 0a 20 20 20 20 64 69 72 65 63 74 6f 72 ame. director
1e00: 79 20 61 73 20 74 68 65 20 2e 65 78 65 20 66 69 y as the .exe fi
1e10: 6c 65 20 74 68 61 74 20 75 73 65 73 20 69 74 2c le that uses it,
1e20: 20 72 61 74 68 65 72 20 74 68 61 6e 20 69 6e 73 rather than ins
1e30: 74 61 6c 6c 69 6e 67 0a 20 20 20 20 69 6e 74 6f talling. into
1e40: 20 61 20 73 79 73 74 65 6d 20 64 69 72 65 63 74 a system direct
1e50: 6f 72 79 20 77 68 65 72 65 20 69 74 20 63 6f 75 ory where it cou
1e60: 6c 64 20 63 6f 6e 66 6c 69 63 74 20 77 69 74 68 ld conflict with
1e70: 20 61 20 6d 79 73 71 6c 70 70 2e 64 6c 6c 0a 20 a mysqlpp.dll.
1e80: 20 20 20 62 75 69 6c 74 20 77 69 74 68 20 64 69 built with di
1e90: 66 66 65 72 65 6e 74 20 73 65 74 74 69 6e 67 73 fferent settings
1ea0: 2e 0a 0a 20 20 20 20 4f 6e 63 65 20 79 6f 75 20 ... Once you
1eb0: 68 61 76 65 20 4d 79 53 51 4c 2b 2b 20 62 75 69 have MySQL++ bui
1ec0: 6c 74 20 77 69 74 68 20 43 4c 52 20 73 75 70 70 lt with CLR supp
1ed0: 6f 72 74 2c 20 6f 70 65 6e 20 79 6f 75 72 20 70 ort, open your p
1ee0: 72 6f 67 72 61 6d 27 73 0a 20 20 20 20 70 72 6f rogram's. pro
1ef0: 6a 65 63 74 2e 20 20 49 66 20 79 6f 75 20 64 6f ject. If you do
1f00: 6e 27 74 20 61 6c 72 65 61 64 79 20 68 61 76 65 n't already have
1f10: 20 61 20 70 72 6f 6a 65 63 74 20 73 65 74 20 75 a project set u
1f20: 70 2c 20 6f 70 65 6e 20 56 69 73 75 61 6c 0a 20 p, open Visual.
1f30: 20 20 20 53 74 75 64 69 6f 2c 20 73 61 79 20 46 Studio, say F
1f40: 69 6c 65 20 3e 20 4e 65 77 20 3e 20 50 72 6f 6a ile > New > Proj
1f50: 65 63 74 2c 20 74 68 65 6e 20 63 68 6f 6f 73 65 ect, then choose
1f60: 20 56 69 73 75 61 6c 20 43 2b 2b 20 3e 20 43 4c Visual C++ > CL
1f70: 52 20 3e 0a 20 20 20 20 57 69 6e 64 6f 77 73 20 R >. Windows
1f80: 46 6f 72 6d 73 20 41 70 70 6c 69 63 61 74 69 6f Forms Applicatio
1f90: 6e 2e 20 20 47 6f 20 74 68 72 6f 75 67 68 20 74 n. Go through t
1fa0: 68 65 20 77 69 7a 61 72 64 20 73 65 74 74 69 6e he wizard settin
1fb0: 67 20 75 70 20 74 68 65 0a 20 20 20 20 70 72 6f g up the. pro
1fc0: 6a 65 63 74 20 61 73 20 79 6f 75 20 73 65 65 20 ject as you see
1fd0: 66 69 74 2e 0a 0a 20 20 20 20 54 68 65 20 63 6f fit... The co
1fe0: 6e 66 69 67 75 72 61 74 69 6f 6e 20 70 72 6f 63 nfiguration proc
1ff0: 65 73 73 20 69 73 6e 27 74 20 6d 75 63 68 20 64 ess isn't much d
2000: 69 66 66 65 72 65 6e 74 20 66 72 6f 6d 20 74 68 ifferent from th
2010: 61 74 20 66 6f 72 20 61 6e 0a 20 20 20 20 4d 46 at for an. MF
2020: 43 20 70 72 6f 6a 65 63 74 2c 20 73 6f 20 67 6f C project, so go
2030: 20 74 68 72 6f 75 67 68 20 74 68 65 20 6c 69 73 through the lis
2040: 74 20 61 62 6f 76 65 20 66 69 72 73 74 2e 20 20 t above first.
2050: 54 68 65 6e 2c 20 6d 61 6b 65 20 74 68 65 0a 20 Then, make the.
2060: 20 20 20 66 6f 6c 6c 6f 77 69 6e 67 20 63 68 61 following cha
2070: 6e 67 65 73 20 70 61 72 74 69 63 75 6c 61 72 20 nges particular
2080: 74 6f 20 2e 4e 45 54 20 61 6e 64 20 43 2b 2b 2f to .NET and C++/
2090: 43 4c 49 3a 0a 0a 20 20 20 20 20 20 20 20 6f 20 CLI:.. o
20a0: 55 6e 64 65 72 20 43 6f 6e 66 69 67 75 72 61 74 Under Configurat
20b0: 69 6f 6e 20 50 72 6f 70 65 72 74 69 65 73 20 3e ion Properties >
20c0: 20 47 65 6e 65 72 61 6c 20 63 68 61 6e 67 65 20 General change
20d0: 74 68 65 20 73 65 74 74 69 6e 67 0a 20 20 20 20 the setting.
20e0: 20 20 20 20 20 20 66 72 6f 6d 20 2f 63 6c 72 3a from /clr:
20f0: 70 75 72 65 20 74 6f 20 2f 63 6c 72 2e 20 20 28 pure to /clr. (
2100: 59 6f 75 20 6e 65 65 64 20 6d 69 78 65 64 20 61 You need mixed a
2110: 73 73 65 6d 62 6c 79 20 73 75 70 70 6f 72 74 0a ssembly support.
2120: 20 20 20 20 20 20 20 20 20 20 74 6f 20 61 6c 6c to all
2130: 6f 77 20 61 20 43 2b 2b 2f 43 4c 49 20 70 72 6f ow a C++/CLI pro
2140: 67 72 61 6d 20 74 6f 20 75 73 65 20 61 20 70 6c gram to use a pl
2150: 61 69 6e 20 43 2b 2b 20 6c 69 62 72 61 72 79 0a ain C++ library.
2160: 20 20 20 20 20 20 20 20 20 20 6c 69 6b 65 20 4d like M
2170: 79 53 51 4c 2b 2b 2e 29 0a 0a 20 20 20 20 20 20 ySQL++.)..
2180: 20 20 6f 20 46 6f 72 20 74 68 65 20 4c 69 6e 6b o For the Link
2190: 65 72 20 3e 20 49 6e 70 75 74 20 73 65 74 74 69 er > Input setti
21a0: 6e 67 73 2c 20 79 6f 75 20 64 6f 6e 27 74 20 6e ngs, you don't n
21b0: 65 65 64 20 77 73 6f 63 6b 33 32 2e 6c 69 62 2e eed wsock32.lib.
21c0: 0a 20 20 20 20 20 20 20 20 20 20 54 68 65 20 6d . The m
21d0: 65 72 65 20 66 61 63 74 20 74 68 61 74 20 79 6f ere fact that yo
21e0: 75 27 72 65 20 75 73 69 6e 67 20 2e 4e 45 54 20 u're using .NET
21f0: 74 61 6b 65 73 20 63 61 72 65 20 6f 66 20 74 68 takes care of th
2200: 61 74 0a 20 20 20 20 20 20 20 20 20 20 64 65 70 at. dep
2210: 65 6e 64 65 6e 63 79 20 66 6f 72 20 79 6f 75 2e endency for you.
2220: 0a 0a 20 20 20 20 49 6e 20 74 68 65 20 4d 46 43 .. In the MFC
2230: 20 69 6e 73 74 72 75 63 74 69 6f 6e 73 20 61 62 instructions ab
2240: 6f 76 65 2c 20 69 74 20 73 61 69 64 20 74 68 61 ove, it said tha
2250: 74 20 79 6f 75 20 6e 65 65 64 20 74 6f 20 62 75 t you need to bu
2260: 69 6c 64 20 69 74 0a 20 20 20 20 75 73 69 6e 67 ild it. using
2270: 20 74 68 65 20 4d 75 6c 74 69 2d 74 68 72 65 61 the Multi-threa
2280: 64 65 64 20 44 4c 4c 20 76 65 72 73 69 6f 6e 20 ded DLL version
2290: 6f 66 20 74 68 65 20 43 2b 2b 20 52 75 6e 74 69 of the C++ Runti
22a0: 6d 65 20 4c 69 62 72 61 72 79 2e 0a 20 20 20 20 me Library..
22b0: 54 68 61 74 27 73 20 6e 6f 74 20 73 74 72 69 63 That's not stric
22c0: 74 6c 79 20 74 72 75 65 20 66 6f 72 20 4d 46 43 tly true for MFC
22d0: 2c 20 62 75 74 20 69 74 27 73 20 61 6e 20 61 62 , but it's an ab
22e0: 73 6f 6c 75 74 65 20 72 65 71 75 69 72 65 6d 65 solute requireme
22f0: 6e 74 0a 20 20 20 20 66 6f 72 20 43 2b 2b 2f 43 nt. for C++/C
2300: 4c 49 2e 20 20 53 65 65 20 74 68 65 20 52 65 6d LI. See the Rem
2310: 61 72 6b 73 20 69 6e 20 74 68 69 73 20 4d 53 44 arks in this MSD
2320: 4e 20 61 72 74 69 63 6c 65 20 66 6f 72 20 64 65 N article for de
2330: 74 61 69 6c 73 3a 0a 0a 20 20 20 20 20 20 20 20 tails:..
2340: 68 74 74 70 3a 2f 2f 6d 73 64 6e 32 2e 6d 69 63 http://msdn2.mic
2350: 72 6f 73 6f 66 74 2e 63 6f 6d 2f 65 6e 2d 75 73 rosoft.com/en-us
2360: 2f 6c 69 62 72 61 72 79 2f 6b 38 64 31 31 64 34 /library/k8d11d4
2370: 73 2e 61 73 70 78 0a 0a 20 20 20 20 59 6f 75 20 s.aspx.. You
2380: 6d 61 79 20 77 61 6e 74 20 74 6f 20 73 74 75 64 may want to stud
2390: 79 20 65 78 61 6d 70 6c 65 73 5c 76 73 74 75 64 y examples\vstud
23a0: 69 6f 5c 77 66 6f 72 6d 73 5c 77 66 6f 72 6d 73 io\wforms\wforms
23b0: 2e 76 63 70 72 6f 6a 20 74 6f 0a 20 20 20 20 73 .vcproj to. s
23c0: 65 65 20 61 6c 6c 20 74 68 69 73 20 69 6e 20 61 ee all this in a
23d0: 63 74 69 6f 6e 2e 20 20 4e 6f 74 65 20 74 68 61 ction. Note tha
23e0: 74 20 73 6f 6d 65 20 6f 66 20 74 68 65 20 70 61 t some of the pa
23f0: 74 68 73 20 77 69 6c 6c 20 62 65 0a 20 20 20 20 ths will be.
2400: 64 69 66 66 65 72 65 6e 74 2c 20 62 65 63 61 75 different, becau
2410: 73 65 20 69 74 20 63 61 6e 20 75 73 65 20 72 65 se it can use re
2420: 6c 61 74 69 76 65 20 70 61 74 68 73 20 66 6f 72 lative paths for
2430: 20 6d 79 73 71 6c 70 70 5f 64 2e 64 6c 6c 0a 20 mysqlpp_d.dll.
2440: 20 20 20 61 6e 64 20 6d 79 73 71 6c 70 70 2e 64 and mysqlpp.d
2450: 6c 6c 2e 0a 0a 0a 57 6f 72 6b 69 6e 67 20 57 69 ll....Working Wi
2460: 74 68 20 42 61 6b 65 66 69 6c 65 0a 7e 7e 7e 7e th Bakefile.~~~~
2470: 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e ~~~~~~~~~~~~~~~~
2480: 7e 0a 20 20 20 20 4d 79 53 51 4c 2b 2b 27 73 20 ~. MySQL++'s
2490: 74 6f 70 2d 6c 65 76 65 6c 20 56 69 73 75 61 6c top-level Visual
24a0: 20 53 74 75 64 69 6f 20 70 72 6f 6a 65 63 74 20 Studio project
24b0: 66 69 6c 65 73 20 61 72 65 6e 27 74 0a 20 20 20 files aren't.
24c0: 20 6d 61 69 6e 74 61 69 6e 65 64 20 64 69 72 65 maintained dire
24d0: 63 74 6c 79 2e 20 20 49 6e 73 74 65 61 64 2c 20 ctly. Instead,
24e0: 77 65 20 75 73 65 20 61 20 74 6f 6f 6c 20 63 61 we use a tool ca
24f0: 6c 6c 65 64 20 42 61 6b 65 66 69 6c 65 0a 20 20 lled Bakefile.
2500: 20 20 28 68 74 74 70 3a 2f 2f 62 61 6b 65 66 69 (http://bakefi
2510: 6c 65 2e 6f 72 67 2f 29 20 74 6f 20 67 65 6e 65 le.org/) to gene
2520: 72 61 74 65 20 6d 61 6e 79 20 64 69 66 66 65 72 rate many differ
2530: 65 6e 74 20 70 72 6f 6a 65 63 74 20 66 69 6c 65 ent project file
2540: 0a 20 20 20 20 61 6e 64 20 4d 61 6b 65 66 69 6c . and Makefil
2550: 65 20 74 79 70 65 73 20 66 72 6f 6d 20 61 20 73 e types from a s
2560: 69 6e 67 6c 65 20 73 65 74 20 6f 66 20 73 6f 75 ingle set of sou
2570: 72 63 65 20 66 69 6c 65 73 2e 20 20 54 68 65 72 rce files. Ther
2580: 65 20 69 73 0a 20 20 20 20 61 20 6e 61 74 69 76 e is. a nativ
2590: 65 20 57 69 6e 64 6f 77 73 20 76 65 72 73 69 6f e Windows versio
25a0: 6e 20 6f 66 20 42 61 6b 65 66 69 6c 65 20 75 70 n of Bakefile up
25b0: 20 6f 6e 20 74 68 61 74 20 77 65 62 20 73 69 74 on that web sit
25c0: 65 2e 0a 20 20 20 20 44 6f 77 6e 6c 6f 61 64 20 e.. Download
25d0: 74 68 61 74 20 61 6e 64 20 70 75 74 20 74 68 65 that and put the
25e0: 20 64 69 72 65 63 74 6f 72 79 20 63 6f 6e 74 61 directory conta
25f0: 69 6e 69 6e 67 20 62 61 6b 65 66 69 6c 65 5f 67 ining bakefile_g
2600: 65 6e 2e 65 78 65 0a 20 20 20 20 69 6e 20 79 6f en.exe. in yo
2610: 75 72 20 57 69 6e 64 6f 77 73 20 50 41 54 48 2e ur Windows PATH.
2620: 0a 0a 20 20 20 20 42 61 6b 65 66 69 6c 65 20 67 .. Bakefile g
2630: 65 6e 65 72 61 74 65 73 20 74 68 65 20 76 61 72 enerates the var
2640: 69 6f 75 73 20 70 72 6f 6a 65 63 74 20 66 69 6c ious project fil
2650: 65 73 20 61 6e 64 20 4d 61 6b 65 66 69 6c 65 73 es and Makefiles
2660: 20 66 72 6f 6d 0a 20 20 20 20 61 20 73 69 6e 67 from. a sing
2670: 6c 65 20 73 6f 75 72 63 65 20 66 69 6c 65 2c 20 le source file,
2680: 6d 79 73 71 6c 2b 2b 2e 62 6b 6c 2e 20 20 54 68 mysql++.bkl. Th
2690: 69 73 20 69 73 20 75 73 75 61 6c 6c 79 20 74 68 is is usually th
26a0: 65 20 66 69 6c 65 20 79 6f 75 0a 20 20 20 20 6e e file you. n
26b0: 65 65 64 20 74 6f 20 63 68 61 6e 67 65 20 77 68 eed to change wh
26c0: 65 6e 20 79 6f 75 20 77 61 6e 74 20 74 6f 20 6d en you want to m
26d0: 61 6b 65 20 73 6f 6d 65 20 63 68 61 6e 67 65 20 ake some change
26e0: 74 6f 20 74 68 65 20 4d 79 53 51 4c 2b 2b 0a 20 to the MySQL++.
26f0: 20 20 20 62 75 69 6c 64 20 73 79 73 74 65 6d 2e build system.
2700: 0a 0a 20 20 20 20 57 68 69 6c 65 20 42 61 6b 65 .. While Bake
2710: 66 69 6c 65 27 73 20 64 6f 63 75 6d 65 6e 74 61 file's documenta
2720: 74 69 6f 6e 20 69 73 6e 27 74 20 61 73 20 63 6f tion isn't as co
2730: 6d 70 72 65 68 65 6e 73 69 76 65 20 61 73 20 69 mprehensive as i
2740: 74 0a 20 20 20 20 6f 75 67 68 74 20 74 6f 20 62 t. ought to b
2750: 65 2c 20 79 6f 75 20 63 61 6e 20 61 74 20 6c 65 e, you can at le
2760: 61 73 74 20 63 6f 75 6e 74 20 6f 6e 20 69 74 20 ast count on it
2770: 74 6f 20 6c 69 73 74 20 61 6c 6c 20 6f 66 20 74 to list all of t
2780: 68 65 0a 20 20 20 20 61 76 61 69 6c 61 62 6c 65 he. available
2790: 20 66 65 61 74 75 72 65 73 2e 20 20 53 6f 2c 20 features. So,
27a0: 69 66 20 79 6f 75 20 63 61 6e 27 74 20 73 65 65 if you can't see
27b0: 20 61 20 77 61 79 20 74 6f 20 6d 61 6b 65 20 42 a way to make B
27c0: 61 6b 65 66 69 6c 65 0a 20 20 20 20 64 6f 20 73 akefile. do s
27d0: 6f 6d 65 74 68 69 6e 67 2c 20 69 74 27 73 20 6c omething, it's l
27e0: 69 6b 65 6c 79 20 69 74 20 6a 75 73 74 20 63 61 ikely it just ca
27f0: 6e 27 74 20 64 6f 20 69 74 2e 20 20 42 61 6b 65 n't do it. Bake
2800: 66 69 6c 65 20 69 73 20 61 0a 20 20 20 20 68 69 file is a. hi
2810: 67 68 2d 6c 65 76 65 6c 20 61 62 73 74 72 61 63 gh-level abstrac
2820: 74 69 6f 6e 20 6f 66 20 62 75 69 6c 64 20 73 79 tion of build sy
2830: 73 74 65 6d 73 20 69 6e 20 67 65 6e 65 72 61 6c stems in general
2840: 2c 20 73 6f 20 69 74 27 6c 6c 20 6e 65 76 65 72 , so it'll never
2850: 0a 20 20 20 20 73 75 70 70 6f 72 74 20 61 6c 6c . support all
2860: 20 74 68 65 20 70 61 72 74 69 63 75 6c 61 72 73 the particulars
2870: 20 6f 66 20 65 76 65 72 79 20 6f 64 64 20 62 75 of every odd bu
2880: 69 6c 64 20 73 79 73 74 65 6d 20 6f 75 74 20 74 ild system out t
2890: 68 65 72 65 2e 0a 0a 20 20 20 20 4f 6e 63 65 20 here... Once
28a0: 79 6f 75 27 76 65 20 6d 61 64 65 20 79 6f 75 72 you've made your
28b0: 20 63 68 61 6e 67 65 73 2c 20 79 6f 75 20 63 61 changes, you ca
28c0: 6e 20 67 65 6e 65 72 61 74 65 20 74 68 65 20 56 n generate the V
28d0: 69 73 75 61 6c 20 43 2b 2b 0a 20 20 20 20 70 72 isual C++. pr
28e0: 6f 6a 65 63 74 20 66 69 6c 65 73 20 62 79 20 72 oject files by r
28f0: 75 6e 6e 69 6e 67 20 72 65 62 61 6b 65 2e 62 61 unning rebake.ba
2900: 74 2c 20 77 68 69 63 68 20 79 6f 75 20 63 61 6e t, which you can
2910: 20 66 69 6e 64 20 69 6e 20 74 68 65 0a 20 20 20 find in the.
2920: 20 73 61 6d 65 20 64 69 72 65 63 74 6f 72 79 20 same directory
2930: 61 73 20 74 68 69 73 20 66 69 6c 65 2e 0a 0a 0a as this file....
2940: 49 66 20 59 6f 75 20 52 75 6e 20 49 6e 74 6f 20 If You Run Into
2950: 50 72 6f 62 6c 65 6d 73 2e 2e 2e 0a 7e 7e 7e 7e Problems....~~~~
2960: 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e 7e ~~~~~~~~~~~~~~~~
2970: 7e 7e 7e 7e 7e 7e 7e 0a 20 20 20 20 45 73 70 65 ~~~~~~~. Espe
2980: 63 69 61 6c 6c 79 20 69 66 20 79 6f 75 20 68 61 cially if you ha
2990: 76 65 20 6c 69 6e 6b 69 6e 67 20 70 72 6f 62 6c ve linking probl
29a0: 65 6d 73 2c 20 6d 61 6b 65 20 73 75 72 65 20 79 ems, make sure y
29b0: 6f 75 72 20 70 72 6f 6a 65 63 74 0a 20 20 20 20 our project.
29c0: 73 65 74 74 69 6e 67 73 20 6d 61 74 63 68 20 74 settings match t
29d0: 68 65 20 61 62 6f 76 65 2e 20 20 56 69 73 75 61 he above. Visua
29e0: 6c 20 43 2b 2b 20 69 73 20 76 65 72 79 20 70 69 l C++ is very pi
29f0: 63 6b 79 20 61 62 6f 75 74 20 74 68 69 6e 67 73 cky about things
2a00: 0a 20 20 20 20 6c 69 6b 65 20 72 75 6e 20 74 69 . like run ti
2a10: 6d 65 20 6c 69 62 72 61 72 79 20 73 65 74 74 69 me library setti
2a20: 6e 67 73 2e 20 20 57 68 65 6e 20 69 6e 20 64 6f ngs. When in do
2a30: 75 62 74 2c 20 74 72 79 20 72 75 6e 6e 69 6e 67 ubt, try running
2a40: 20 6f 6e 65 0a 20 20 20 20 6f 66 20 74 68 65 20 one. of the
2a50: 65 78 61 6d 70 6c 65 20 70 72 6f 67 72 61 6d 73 example programs
2a60: 2e 20 20 49 66 20 69 74 20 77 6f 72 6b 73 2c 20 . If it works,
2a70: 74 68 65 20 70 72 6f 62 6c 65 6d 20 69 73 20 6c the problem is l
2a80: 69 6b 65 6c 79 20 69 6e 0a 20 20 20 20 79 6f 75 ikely in. you
2a90: 72 20 70 72 6f 6a 65 63 74 20 73 65 74 74 69 6e r project settin
2aa0: 67 73 2c 20 6e 6f 74 20 69 6e 20 4d 79 53 51 4c gs, not in MySQL
2ab0: 2b 2b 2e 0a 0a ++...