home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / BOCOLE.PAK / UTILS.H < prev   
Encoding:
C/C++ Source or Header  |  1997-05-06  |  1.2 KB  |  42 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectComponents
  3. // Copyright (c) 1991, 1996 by Borland International, All Rights Reserved
  4. //
  5. // $Revision:   2.4  $
  6. //
  7. // Utils.h -- Contains some functions to make 32-bit bocole work under WIN95.
  8. //----------------------------------------------------------------------------
  9. #ifndef _UTILS_H
  10. #define _UTILS_H
  11.  
  12. #ifdef WIN32
  13. #ifndef UNICODE
  14.  
  15. #undef lstrcpy
  16. #undef lstrlen
  17. #undef lstrcpyn
  18. #undef lstrcat
  19. #undef lstrcmp
  20.  
  21. #define lstrcpy(a,b)  lstrcpyW2(a,b)
  22. #define lstrlen(a)    lstrlenW2(a)
  23. #define lstrcpyn(a, b, c)   lstrcpynW2(a, b, c)
  24. #define lstrcat(a, b)   lstrcatW2(a, b)
  25. #define lstrcmp(a, b)   lstrcmpW2(a, b)
  26.  
  27. LPWSTR lstrcpyW2(LPWSTR lpString1, LPCWSTR lpString2);
  28. int    lstrlenW2(LPCWSTR lpString);
  29. LPWSTR lstrcpynW2(LPWSTR lpString1, LPCWSTR lpString2, int iMaxLength);
  30. LPWSTR lstrcatW2(LPWSTR lpString1, LPCWSTR lpString2);
  31. int    lstrcmpW2(LPWSTR lpString1, LPCWSTR lpString2);
  32.  
  33. #undef  MAKEINTRESOURCEW
  34. #define MAKEINTRESOURCEW  MAKEINTRESOURCEA
  35. #define LoadCursorW LoadCursorA
  36. #define DefWindowProcW DefWindowProcA
  37.  
  38. #endif  // UNICODE
  39. #endif  // WIN32
  40.  
  41. #endif  // _UTILS_H
  42.