Click here to Skip to main content
15,908,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Connecting to MySQL using VC++ Pin
PJ Arends30-Jul-03 19:59
professionalPJ Arends30-Jul-03 19:59 
QuestionHow to change Combobox style at runtime? Pin
Andrew Allen30-Jul-03 14:46
Andrew Allen30-Jul-03 14:46 
AnswerRe: How to change Combobox style at runtime? Pin
Eugene Pustovoyt30-Jul-03 18:22
Eugene Pustovoyt30-Jul-03 18:22 
GeneralRe: How to change Combobox style at runtime? Pin
Andrew Allen31-Jul-03 2:11
Andrew Allen31-Jul-03 2:11 
GeneralRe: How to change Combobox style at runtime? Pin
armentage1-Aug-03 4:25
armentage1-Aug-03 4:25 
GeneralRe: How to change Combobox style at runtime? Pin
Andrew Allen1-Aug-03 5:19
Andrew Allen1-Aug-03 5:19 
GeneralIterate files in folder/sub folders Pin
alex.barylski30-Jul-03 14:02
alex.barylski30-Jul-03 14:02 
GeneralRe: Iterate files in folder/sub folders Pin
Andrew Walker30-Jul-03 14:24
Andrew Walker30-Jul-03 14:24 
This is what I use, but I'm looking into moving to the Boost::filesystem library to do platform independant directory iteration.

#include "io.h"

/**
 *  Windows file find utility.
 *  wraps the _findnext, _findfirst, _findclose, _finddata_t_ windows API
 *
 *  @author Paul DiLascia
 *  @version 1.0, 1996 C++ Q & A
 */
class CFileSpec : public _finddata_t {
      long            m_hfile;            // handle from findfirst

public:
       CFileSpec() {
            m_hfile = -1;
      }

      ~CFileSpec() {
            if (m_hfile>=0)
                  _findclose(m_hfile);
      }

      bool First(const char* filespec) {
            if (m_hfile>=0)
                  _findclose(m_hfile);
            return (m_hfile=_findfirst((char*)filespec, this)) != -1;
      }

      bool Next() {
            return m_hfile>=0 && _findnext(m_hfile, this)==0;
      }
};



If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.

Rudyard Kipling

GeneralRe: Iterate files in folder/sub folders Pin
alex.barylski30-Jul-03 15:10
alex.barylski30-Jul-03 15:10 
GeneralRe: Iterate files in folder/sub folders Pin
Andrew Walker30-Jul-03 15:46
Andrew Walker30-Jul-03 15:46 
GeneralRe: Iterate files in folder/sub folders Pin
alex.barylski30-Jul-03 21:48
alex.barylski30-Jul-03 21:48 
GeneralProblem creating C++ MFC Application using Visual C++ .NET Pin
ElizabethC30-Jul-03 12:37
ElizabethC30-Jul-03 12:37 
QuestionCatching file system updates? Pin
kaladorn30-Jul-03 12:03
kaladorn30-Jul-03 12:03 
AnswerRe: Catching file system updates? Pin
Ted Ferenc30-Jul-03 12:35
Ted Ferenc30-Jul-03 12:35 
GeneralRe: Catching file system updates? Pin
kaladorn30-Jul-03 13:51
kaladorn30-Jul-03 13:51 
GeneralRe: Catching file system updates? Pin
Ted Ferenc30-Jul-03 21:32
Ted Ferenc30-Jul-03 21:32 
AnswerRe: Catching file system updates? Pin
Beer2630-Jul-03 12:37
Beer2630-Jul-03 12:37 
GeneralRe: Catching file system updates? Pin
kaladorn30-Jul-03 13:46
kaladorn30-Jul-03 13:46 
GeneralRe: Catching file system updates? Pin
Beer2630-Jul-03 14:11
Beer2630-Jul-03 14:11 
GeneralRe: Catching file system updates? Pin
kaladorn30-Jul-03 14:15
kaladorn30-Jul-03 14:15 
GeneralRe: Catching file system updates? Pin
Beer2630-Jul-03 14:16
Beer2630-Jul-03 14:16 
GeneralRe: Catching file system updates? Pin
Beer2630-Jul-03 14:18
Beer2630-Jul-03 14:18 
GeneralAdjustTokenPrivileges Pin
Anonymous30-Jul-03 11:31
Anonymous30-Jul-03 11:31 
GeneralRe: AdjustTokenPrivileges Pin
Mike Dimmick30-Jul-03 23:38
Mike Dimmick30-Jul-03 23:38 
Generalmy exe's small icon Pin
Marissa18230-Jul-03 11:02
Marissa18230-Jul-03 11:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.