Automatic generation produced by ISE Eiffel

Classes Clusters Cluster hierarchy Chart Relations Text Flat Contracts Flat contracts Go to:
indexing description: "DLL for Win32" status: "See notice at end of class" date: "$Date: 2001-11-16 20:32:23 +0000 (Fri, 16 Nov 2001) $" revision: "$Revision: 51435 $" class DLL_32 inherit SHARED_LIBRARY MEMORY rename free as memory_free export {NONE} all redefine dispose end create make feature {NONE} -- Initialization make (lib_name: STRING) is -- Load DLL lib_name local c_lib_name: ANY do library_name := lib_name c_lib_name := lib_name.to_c module_handle := win_load_library ($c_lib_name) if module_handle = default_pointer then error_code := no_library else error_code := no_error end end feature -- Access library_name: STRING -- Name of shared library feature -- Status report error_code: INTEGER -- Current status of the library feature -- Removal free is -- Release the library require meaningful: meaningful do win_free_library (module_handle) module_handle := default_pointer error_code := library_freed ensure not_meaningful: not meaningful end feature {NONE} -- Removal dispose is -- Release the library at time of collection if not already done do if module_handle /= default_pointer then win_free_library (module_handle) end end feature {DLL_32_ROUTINE} -- Implementation module_handle: POINTER -- Pointer to the external library feature {NONE} -- Externals win_free_library (p: POINTER) is -- Free library external "C [macro <windows.h>] (HINSTANCE)" alias "FreeLibrary" end win_load_library (p: POINTER): POINTER is -- Load library external "C [macro <windows.h>] (LPCTSTR): EIF_POINTER" alias "LoadLibrary" end indexing library: "[ EiffelBase: Library of reusable components for Eiffel. ]" status: "[ Copyright 1986-2001 Interactive Software Engineering (ISE). For ISE customers the original versions are an ISE product covered by the ISE Eiffel license and support agreements. ]" license: "[ EiffelBase may now be used by anyone as FREE SOFTWARE to develop any product, public-domain or commercial, without payment to ISE, under the terms of the ISE Free Eiffel Library License (IFELL) at http://eiffel.com/products/base/license.html. ]" source: "[ Interactive Software Engineering Inc. ISE Building 360 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Electronic mail <info@eiffel.com> Customer support http://support.eiffel.com ]" info: "[ For latest info see award-winning pages: http://eiffel.com ]" end -- class DLL_32
Classes Clusters Cluster hierarchy Chart Relations Text Flat Contracts Flat contracts Go to:

-- Generated by ISE Eiffel --
For more details: www.eiffel.com