]>
Commit | Line | Data |
---|---|---|
b7301c43 RC |
1 | /* |
2 | * Copyright (c) 2001, Gary R. Van Sickle. | |
3 | * | |
4 | * This program is free software; you can redistribute it and/or modify | |
5 | * it under the terms of the GNU General Public License as published by | |
6 | * the Free Software Foundation; either version 2 of the License, or | |
7 | * (at your option) any later version. | |
8 | * | |
9 | * A copy of the GNU General Public License can be found at | |
10 | * http://www.gnu.org/ | |
11 | * | |
12 | * Written by Gary R. Van Sickle <g.r.vansickle@worldnet.att.net> | |
13 | * | |
14 | */ | |
15 | ||
16 | // Yep, another string class | |
17 | ||
18 | #include <windows.h> | |
19 | ||
20 | class cistring | |
21 | { | |
22 | TCHAR *buffer; | |
23 | public: | |
24 | cistring () | |
25 | { | |
26 | buffer = NULL; | |
27 | }; | |
28 | cistring (const TCHAR * s); | |
29 | ~cistring () | |
30 | { | |
31 | if (buffer != NULL) | |
32 | delete[]buffer; | |
33 | }; | |
34 | ||
35 | const TCHAR *c_str () | |
36 | { | |
37 | return buffer; | |
38 | }; | |
39 | ||
40 | DWORD Format (UINT i, ...); | |
41 | }; |