blob: 2dbde5b2128f244b39ccd25f671c47b9f048046d (
plain) (
blame)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
//+======================================================
//
// File: olechar.h
//
// Purpose: Provide wrappers for string-related
// functions so that the Ansi or Unicode function
// is called, whichever is appropriate for the
// current OLECHAR definition.
//
// This file is similar to "tchar.h", except
// that it covers OLECHARs rather than TCHARs.
//
// History:
// 08-Nov-96 MikeHill Added ULTOO
//
//+======================================================
#ifndef _OLECHAR_H_
#define _OLECHAR_H_
//#include <objbase.h>
#ifdef OLE2ANSI
# ifdef _MAC
# define ocslen strlen
# define ocscpy strcpy
# define ocscmp strcmp
# define ocscat strcat
# define ocschr strchr
# define soprintf sprintf
# define oprintf printf
# define ocsnicmp _strnicmp
# else
# define ocslen lstrlenA
# define ocscpy lstrcpyA
# define ocscmp lpstrcmpA
# define ocscat lpstrcatA
# define ocschr strchr
# define soprintf sprintf
# define oprintf printf
# define ocsnicmp _strnicmp
# endif
// "Unsigned Long to OLESTR"
# define ULTOO(value,string,radix) _ultoa( (value), (string), (radix) )
#else // !OLE2ANSI
// BUGBUG: In the #else below, restore wcslen to
// lstrlenW when property code is moved from NTDLL
// to OLE32.
# ifdef IPROPERTY_DLL
# define ocslen wcslen //lstrlenW
# define ocscpy wcscpy
# define ocscmp wcscmp
# define ocscat wcscat
# define ocschr wcschr
# define soprintf swprintf
# define oprintf wprintf
# define ocsnicmp _wcsnicmp
# else
# define ocslen wcslen //lstrlenW
# define ocscpy lstrcpyW
# define ocscmp lstrcmpW
# define ocscat lstrcatW
# define ocschr wcschr
# define soprintf swprintf
# define oprintf wprintf
# define ocsnicmp _wcsnicmp
# endif
// "Unsigned Long to OLESTR"
# define ULTOO(value,string,radix) _ultow( (value), (string), (radix) )
#endif // !OLE2ANSI
#endif // !_OLECHAR_H_
|