#ifndef OPENFNM_H_ #define OPENFNM_H_ #include <windows.h> class CMyOpenFileName { public: CMyOpenFileName(); ~CMyOpenFileName(); BOOL Prompt(HINSTANCE hInst, HWND hWnd); const TCHAR* FileName() const; protected: OPENFILENAME m_ofn; TCHAR m_szFileName[(MAX_PATH+1)]; }; #endif /*OPENFNM_H_*/