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.14 2003/09/03 03:40:35 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> |
50 |
|
void usage(HWND parent = NULL); |
51 |
|
void version(HWND parent = NULL); |
52 |
|
|
53 |
+ |
inline string toLower(const string& mixed) |
54 |
+ |
{ |
55 |
+ |
string lower; |
56 |
+ |
|
57 |
+ |
for (unsigned index = 0; index < mixed.length(); index++) |
58 |
+ |
{ |
59 |
+ |
lower += tolower(mixed[index]); |
60 |
+ |
} |
61 |
+ |
|
62 |
+ |
return lower; |
63 |
+ |
} |
64 |
+ |
|
65 |
|
inline string toAnsi(const wstring& wide) |
66 |
|
{ |
67 |
|
LPSTR buffer = new CHAR[wide.length() + 1]; |