Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FXDLL.h
Go to the documentation of this file.
1 /********************************************************************************
2 * *
3 * D y n a m i c L i n k L i b r a r y S u p p o r t *
4 * *
5 *********************************************************************************
6 * Copyright (C) 2002,2006 by Jeroen van der Zijp. All Rights Reserved. *
7 *********************************************************************************
8 * This library is free software; you can redistribute it and/or *
9 * modify it under the terms of the GNU Lesser General Public *
10 * License as published by the Free Software Foundation; either *
11 * version 2.1 of the License, or (at your option) any later version. *
12 * *
13 * This library is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
16 * Lesser General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU Lesser General Public *
19 * License along with this library; if not, write to the Free Software *
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
21 *********************************************************************************
22 * $Id: FXDLL.h,v 1.8 2006/01/22 17:58:00 fox Exp $ *
23 ********************************************************************************/
24 #ifndef FXDLL_H
25 #define FXDLL_H
26 
27 namespace FX {
28 
29 /**
30 * Open library with given name, returning handle to the
31 * library, or NULL if the operation failed.
32 */
33 extern FXAPI void* fxdllOpen(const FXchar *dllname);
34 
35 
36 /**
37 * Close library represented by dllhandle.
38 */
39 extern FXAPI void fxdllClose(void* dllhandle);
40 
41 
42 /**
43 * Return address of the symbol in the library represented by
44 * dllhandle, or NULL if the operation failed.
45 */
46 extern FXAPI void* fxdllSymbol(void* dllhandle,const FXchar* dllsymbol);
47 
48 
49 /**
50 * Return the string error message when loading dll's.
51 */
52 extern FXAPI FXString fxdllError();
53 
54 
55 }
56 
57 #endif
58 
char FXchar
Definition: fxdefs.h:387
void * fxdllSymbol(void *dllhandle, const FXchar *dllsymbol)
Return address of the symbol in the library represented by dllhandle, or NULL if the operation failed...
#define FXAPI
Definition: fxdefs.h:122
void * fxdllOpen(const FXchar *dllname)
Open library with given name, returning handle to the library, or NULL if the operation failed...
void fxdllClose(void *dllhandle)
Close library represented by dllhandle.
FXString fxdllError()
Return the string error message when loading dll's.

Copyright © 1997-2005 Jeroen van der Zijp