Author: wyoung
Date: Wed Apr 11 23:53:09 2007
New Revision: 1502

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1502&view=rev
Log:
Reworked MFC project settings instructions in README.vc to apply to VS
2005.

Modified:
    trunk/README.vc

Modified: trunk/README.vc
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/README.vc?rev=1502&r1=1501&r2=1502&view=diff
==============================================================================
--- trunk/README.vc (original)
+++ trunk/README.vc Wed Apr 11 23:53:09 2007
@@ -7,30 +7,30 @@
 
 Building the Library and Example Programs
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-       As of MySQL++ v2.2, there is only one set of project files in
-       the top level directory for MySQL++.  We ship VC++6 project
-       files (.dsw and .dsp instead of .sln and .vcproj) due to a
-       limitation of the version of Bakefile we're using to generate
-       the project files.  Just let Visual Studio convert these to
-       the new format.
+    As of MySQL++ v2.2, there is only one set of project files in
+    the top level directory for MySQL++.  We ship VC++6 project
+    files (.dsw and .dsp instead of .sln and .vcproj) due to a
+    limitation of the version of Bakefile we're using to generate
+    the project files.  Just let Visual Studio convert these to
+    the new format.
 
-       If MySQL isn't in C:\Program Files\MySQL\MySQL Server 5.0\
-       you need to change the project file settings.  You have
-       two options:
+    If MySQL isn't in C:\Program Files\MySQL\MySQL Server 5.0\
+    you need to change the project file settings.  You have
+    two options:
 
-               - The simplest is to change the link and include
-                 file directories in the project settings directly.
-                 Although it's generally bad practice to change
-                 generated files, if that's all the only change to
-                 MySQL++ you need, this is harmless.
+        - The simplest is to change the link and include
+          file directories in the project settings directly.
+          Although it's generally bad practice to change
+          generated files, if that's all the only change to
+          MySQL++ you need, this is harmless.
 
-               - If you're doing deeper work on MySQL++, you
-                 should probably be changing mysql++.bkl instead.
-                 Then to generate Visual C++ project files from that
-                 file, you will need the Win32 port of Bakefile from
-                 http://bakefile.sf.net/  The command to do that is:
+        - If you're doing deeper work on MySQL++, you
+          should probably be changing mysql++.bkl instead.
+          Then to generate Visual C++ project files from that
+          file, you will need the Win32 port of Bakefile from
+          http://bakefile.sf.net/  The command to do that is:
 
-                         bakefile -f msvc6prj mysql++.bkl
+              bakefile -f msvc6prj mysql++.bkl
 
     Once the library is built and you're satisfied that it's working
     correctly, you can run the install.bat file at the project
@@ -38,41 +38,45 @@
     subdirectories under c:\mysql++.
 
 
-Using MySQL++ in Your Own Projects
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-(This material is based on a post by Steve Hulet <[EMAIL PROTECTED]>)
+Using MySQL++ in an MFC Project
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+    If you don't already have a project set up, open Visual Studio,
+    say File|New|Project, then choose Visual C++|MFC|MFC Application.
+    Go through the wizard setting up the project as you see fit.
 
-    Fire up Visual Studio and create a Blank Solution.  Add a
-    new project.  Choose Empty Project (.NET) under Visual C++
-    Projects.  Add a .cpp file to the solution so it _knows_ it's a
-    C/C++ solution.  Go to the solution Property Pages and make the
-    following changes.  (Where it doesn't specify Debug or Release,
+    Once you have your project open, right click on your top-level
+    executable in the Solution Explorer, choose Properties, and make
+    the following changes.  (Where it doesn't specify Debug or Release,
     make the change to both configurations.)
 
-        o Under Configuration Properties::General change "Use
-          Managed Extensions" to "No"
+        o Under Configuration Properties::General change "Common
+          Language Runtime support" to "No Common Language Runtime
+          support"
 
-        o Under C/C++::General::Additional Include Directories:
-               
-                       C:\Program Files\MySQL\MySQL Server 5.0\include,
-                       C:\mysql++\include
+        o Append the following to C/C++::General::Additional Include
+          Directories:
+
+            C:\Program Files\MySQL\MySQL Server 5.0\include,
+            C:\mysql++\include
 
         o Under C/C++::Code Generation change "Runtime Library" to
           "Multi-threaded Debug DLL (/MDd)" for the Debug
           configuration.  For the Release configuration, make it
           "Multi-threaded DLL (/MD)".
 
-               o Under Linker::General::Additional Library Directories,
-                 in the Debug configuration:
+        o Append the following to Linker::General::Additional Library
+          Directories for the Debug configuration:
 
-                       C:\Program Files\MySQL\MySQL Server 5.0\lib\debug,
-                       C:\mysql++\vc\debug
+            C:\Program Files\MySQL\MySQL Server 5.0\lib\debug,
+            C:\mysql++\vc\debug
 
-                 For the Release configuration, make it the same, but
-                 change the 'debug' directory names to 'opt'.
+          For the Release configuration, make it the same, but
+          change the 'debug' directory names to 'opt'.
 
-        o Under Linker::Input add to "Additional Dependencies":
-          "libmysql.lib wsock32.lib mysqlpp.lib"
+        o Under Linker::Input add the following to "Additional
+          Dependencies":
+                 
+                   libmysql.lib wsock32.lib mysqlpp.lib
 
 
 If You Run into Problems...


_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits

Reply via email to