home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1996 November
/
VPR9611B.ISO
/
vabasic
/
ntclnt.exe
/
DISK8
/
data.8
/
datab
/
INCLUDE
/
LIBLOAD.HH
< prev
next >
Wrap
Text File
|
1996-07-29
|
2KB
|
82 lines
//----------------------------------------------------------------
// $Source: /rcs/crcs/general/libload.hh,v $
// Checked in by: $Author: ej1 $
// $Date: 1996/03/26 21:34:59 $ $Revision: 1.12 $
//----------------------------------------------------------------
// Copyright(c) 1992, Visual Edge Software Ltd.
//
// ALL RIGHTS RESERVED. This notice is intended as a precaution
// against inadvertent publication, and shall not be deemed to
// consitute 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.
//----------------------------------------------------------------------
// DESCRIPTION:
// This file contains the implementation class for
// loading shared libraries and DLL's. To use
// libraries, include libmgr.hh instead.
//----------------------------------------------------------------------
#ifndef LIBLOAD_HH
#define LIBLOAD_HH
#if defined(VSYS_WINDOWS)
# include <vtoolkit.hh>
typedef HINSTANCE VTDllInstance;
#else
#if defined(_OS2)
# define INCL_DOS
# include <os2.h>
typedef HMODULE VTDllInstance;
#else
#if defined(SVR4_DLL)
# if defined(sun4)
extern "C" {
# endif
# include <dlfcn.h>
# if defined(sun4)
}
# endif
typedef void* VTDllInstance;
#else
#if defined(IBM_DLL)
# include <dllibmr2.hh>
typedef void* VTDllInstance;
#else
# if defined(HP_DLL)
# include <dl.h>
typedef shl_t VTDllInstance;
# endif
#endif
#endif
#endif
#endif
#ifdef VSYS_MAC
# include <libload.hh.00.h>
#endif
#include <libbase.hh>
class VePlatformLibrary: public VeLibrary
{
public:
VMETHODDECL(void *) Address (const char *funcName);
protected:
VOPERDECL VePlatformLibrary( const char *libName,
VeLibraryMgr *manager,
VTDllInstance instance);
virtual VOPERDECL ~VePlatformLibrary();
friend VFUNCDECL(VeLibrary *) VeCreateLibrary(
const char *fname,
VeLibraryMgr *manager);
VTDllInstance itsInstance;
};
#endif // LIBLOAD_HH