mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
573 B
35 lines
573 B
#ifndef WHCLASS_H
|
|
#define WHCLASS_H
|
|
|
|
#ifndef FM_H
|
|
#include "fm.h"
|
|
#endif
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifdef DESCRIPTION
|
|
|
|
Creates an FM that is automatically destroyed when the class goes
|
|
out of scope.
|
|
|
|
#endif
|
|
|
|
class CFMDirCurrent
|
|
{
|
|
public:
|
|
FM fm;
|
|
|
|
CFMDirCurrent(PCSTR szFileName) {
|
|
fm = FmNewSzDir(szFileName, DIR_CURRENT); };
|
|
|
|
~CFMDirCurrent() {
|
|
if (fm)
|
|
lcFree(fm);
|
|
};
|
|
|
|
void* Ptr(void) { return fm; };
|
|
};
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#endif // WHCLASS_H
|