home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1996 November
/
VPR9611B.ISO
/
vabasic
/
ntclnt.exe
/
DISK8
/
data.8
/
datab
/
INCLUDE
/
VUSEOLE.H
< prev
next >
Wrap
C/C++ Source or Header
|
1996-07-29
|
3KB
|
97 lines
/*------------------------------------------------------------------------
* $Source: /rcs/crcs/general/vuseole.h,v $
* Checked in by: $Author: andres $
* $Date: 1996/06/11 17:13:26 $ $Revision: 1.8 $
*
* Copyright 1987, Techtrol Ltd.
* Copyright 1990, Visual Edge Software Ltd.
* -----------------------------------------
* ALL RIGHTS RESERVED. This notice is intended as a precaution against
* inadvertent publication, and shall not be deemed to constitute an
* acknowledgment that publication has occurred nor to imply any waiver
* of confidentiality. The year included in the notice is the year
* of the creation of the work.
*------------------------------------------------------------------------*/
/*------------------------------------------------------------------------
*
* Module Name: vuseole.h
* Module Description: #includes and #defines for ole
*
* Date: May 1994
*
*------------------------------------------------------------------------*/
#ifndef USEOLE_H
#define USEOLE_H
#include <vnls.h>
#include <strutil.h>
#if !defined(VTOleChar)
# if defined(VSYS_WIN32)
# define VTOleChar wchar_t
# define VOLE_WIDE_CHAR
# define VTCOleStr LPCOLESTR
# if !defined(INC_OLE2)
# define INC_OLE2
# endif
# define VnOleToChar(str) VeWideToChar(str)
# define VnCharToOle(str) VeCharToWide(str)
# define VnOleToWide(str) (str)
# define VnWideToOle(str) (str)
# define VnOleLength(str) wcslen(str)
# define VnOleEqual(a, b) !wcscmp(a, b)
# define VnOleStrCopy(str) VwcCopy(str)
# define VnCreateBstrFromChar(str) \
VeSysAllocString(VeCharToWide(str))
# define VnCreateCharFromBstr(str) VeCreateCharFromWide(str)
# define VnCreateBstrFromWide(str) VeSysAllocString(str)
# define VnCreateWideFromBstr(str) VwcCopy(str)
# else /* !VSYS_WIN32 */
# define VTOleChar char
# define VTCOleStr LPCSTR
# define VnOleToChar(str) (str)
# define VnCharToOle(str) (str)
# define VnOleToWide(str) VeCharToWide(str)
# define VnWideToOle(str) VeWideToChar(str)
# define VnOleLength(str) strlen(str)
# define VnOleEqual(a, b) !strcmp(a, b)
# define VnOleStrCopy(str) VeStrCopy(str)
# define VnCreateBstrFromChar(str) VeSysAllocString(str)
# define VnCreateCharFromBstr(str) VeStrCopy(str)
# define VnCreateBstrFromWide(str) \
VeSysAllocString(VeWideToChar(str))
# define VnCreateWideFromBstr(str) VeCreateWideFromChar(str)
# endif /* VSYS_WIN32 */
#endif /* VTOleChar */
#ifdef USE_OLE2
#if defined(VSYS_WINDOWS)
#include <windows.h>
#endif
#if defined(VSYS_WIN16)
# include <ole2.h>
# include <olenls.h>
# include <dispatch.h>
#endif /* VSYS_WIN32 */
#endif /* USE_OLE2 */
#endif /* USEOLE_H */