forked from DT85/Assimilate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
oddbits.h
37 lines (25 loc) · 1.03 KB
/
oddbits.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Filename:- oddbits.h
//
#ifndef ODDBITS_H
#define ODDBITS_H
char *va(char *format, ...);
bool FileExists (LPCSTR psFilename);
void ErrorBox(const char *sString);
void InfoBox(const char *sString);
void WarningBox(const char *sString);
//
// (Afx message boxes appear to be MB_TASKMODAL anyway, so no need to specify)
//
#define GetYesNo(psQuery) (!!(AfxMessageBox(psQuery,MB_YESNO|MB_ICONWARNING)==IDYES))
char *scGetTempPath(void);
char *InputLoadFileName(char *psInitialLoadName, char *psCaption, const char *psInitialDir, char *psFilter);
long filesize(FILE *handle);
int scLoadFile (LPCSTR psPathedFilename, void **bufferptr, bool bBinaryMode = true );
void Filename_RemoveBASEQ(CString &string);
void Filename_RemoveFilename(CString &string);
void Filename_BaseOnly(CString &string);
void Filename_AccountForLOD(CString &string, int iLODLevel);
#define StartWait() HCURSOR hcurSave = SetCursor(::LoadCursor(NULL, IDC_WAIT))
#define EndWait() SetCursor(hcurSave)
#endif // #ifndef ODDBITS_H
/////////////////// eof ////////////////////