Author: wyoung
Date: Wed Apr 11 23:35:57 2007
New Revision: 1500

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1500&view=rev
Log:
Made MFC example work a little more like WFC one

Modified:
    trunk/examples/vstudio/mfc/mfc_dlg.cpp
    trunk/examples/vstudio/mfc/mfc_dlg.h

Modified: trunk/examples/vstudio/mfc/mfc_dlg.cpp
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/vstudio/mfc/mfc_dlg.cpp?rev=1500&r1=1499&r2=1500&view=diff
==============================================================================
--- trunk/examples/vstudio/mfc/mfc_dlg.cpp (original)
+++ trunk/examples/vstudio/mfc/mfc_dlg.cpp Wed Apr 11 23:35:57 2007
@@ -164,7 +164,7 @@
                }
 
                // Retreive was successful, so save user inputs now
-               SaveInputs(sServerAddress, sUserName);
+               SaveInputs();
        }
        else {
                // Retreive failed
@@ -195,16 +195,16 @@
 
 
 //// SaveInputs ////////////////////////////////////////////////////////
-// Save the given strings to the registry so future runs and other
-// examples can use them.
-
-bool
-CExampleDlg::SaveInputs(LPCTSTR pcServerAddress, LPCTSTR pcUserName)
+// Saves the input fields' values to the registry, except for the
+// password field.
+
+bool
+CExampleDlg::SaveInputs()
 {
        HKEY key = OpenSettingsRegistryKey();
        if (key) {
-               SaveSetting(key, _T("user"), pcUserName);
-               SaveSetting(key, _T("server"), pcServerAddress);
+               SaveSetting(key, _T("user"), sUserName);
+               SaveSetting(key, _T("server"), sServerAddress);
                RegCloseKey(key);
                return true;
        }

Modified: trunk/examples/vstudio/mfc/mfc_dlg.h
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/vstudio/mfc/mfc_dlg.h?rev=1500&r1=1499&r2=1500&view=diff
==============================================================================
--- trunk/examples/vstudio/mfc/mfc_dlg.h (original)
+++ trunk/examples/vstudio/mfc/mfc_dlg.h Wed Apr 11 23:35:57 2007
@@ -47,7 +47,7 @@
        bool LoadSetting(HKEY key, LPCTSTR pcName, LPTSTR pcValue,
                        DWORD nValueSize);
        HKEY OpenSettingsRegistryKey();
-       bool SaveInputs(LPCTSTR pcServerAddress, LPCTSTR pcUserName);
+       bool SaveInputs();
        bool SaveSetting(HKEY key, LPCTSTR pcName, LPCTSTR pcValue);
        bool ToUCS2(LPTSTR pcOut, int nOutLen, const char* kpcIn);
        bool ToUTF8(char* pcOut, int nOutLen, LPCWSTR kpcIn);


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

Reply via email to