2 |
|
// |
3 |
|
// Douglas Thrift |
4 |
|
// |
5 |
< |
// $Id: VTBFileUtil2.h,v 1.13 2003/08/25 08:08:18 douglas Exp $ |
5 |
> |
// $Id: VTBFileUtil2.h,v 1.15 2003/09/03 04:12:41 douglas Exp $ |
6 |
|
|
7 |
|
#ifndef _VTBFileUtil_h_ |
8 |
|
#define _VTBFileUtil_h_ |
20 |
|
#include <map> |
21 |
|
#include <cstdlib> |
22 |
|
|
23 |
+ |
#define _WIN32_IE 0x0500 |
24 |
+ |
|
25 |
|
#include <windows.h> |
26 |
|
#include <windowsx.h> |
27 |
|
#include <commctrl.h> |
28 |
|
#include <objbase.h> |
29 |
|
#include <shlobj.h> |
30 |
|
#include <shlwapi.h> |
31 |
+ |
#include <richedit.h> |
32 |
|
|
33 |
|
#include "resource.h" |
34 |
|
|
51 |
|
void usage(HWND parent = NULL); |
52 |
|
void version(HWND parent = NULL); |
53 |
|
|
54 |
+ |
inline string toLower(const string& mixed) |
55 |
+ |
{ |
56 |
+ |
string lower; |
57 |
+ |
|
58 |
+ |
for (unsigned index = 0; index < mixed.length(); index++) |
59 |
+ |
{ |
60 |
+ |
lower += tolower(mixed[index]); |
61 |
+ |
} |
62 |
+ |
|
63 |
+ |
return lower; |
64 |
+ |
} |
65 |
+ |
|
66 |
|
inline string toAnsi(const wstring& wide) |
67 |
|
{ |
68 |
|
LPSTR buffer = new CHAR[wide.length() + 1]; |