1. Suggestion for V4 re DLLs
- Posted by axtens Oct 18, 2008
- 1022 views
G'day everyone,
The current situation with DLLs is that anything marked global is exported. Trouble is, lots of included libraries use "global" without meaning that they want themselves to be exposed in a DLLs module list.
For example, at present BOUNE currently exports one symbol: BLOCKS. However, Depends.exe (aka Dependency Walker) lists that module at the end of a long list. Does it hurt to do that? I don't know.
This is the list.
DllMain ___CPPdebugHook allocate free allocate_low free_low dos_interrupt int_to_bytes bytes_to_int int_to_bits bits_to_int set_rand use_vesa crash_message crash_file crash_routine tick_rate get_vector set_vector lock_memory atom_to_float64 atom_to_float32 float64_to_atom float32_to_atom allocate_string register_block unregister_block check_all_blocks open_dll define_c_var define_c_proc define_c_func call_back free_console instance sleep reverse sprint pretty_print arccos arcsin lower upper wildcard_match wildcard_file message_box abortErr warnErr setWarning attachCleanUp detachCleanUp Init_UI_Msgs define_series next_number current_number get_series w32CurrentStructure w32NextStructure w32string w32to_string w32get_bits w32signed_word w32pack_word w32lo_word w32hi_word w32abs w32unpack_dword w32shortInt w32remainder w32average w32round setDecimalMark w32TextToNumber w32or_all w32findKeyEx w32findKey w32removeIndex w32lookup w32iff w32removeItem w32insertElement w32replaceItem w32ordered_find sort custom_sort w32index w32index_by w32trim w32trim_right w32trim_left w32split w32join w32MinSequenceSize w32bounds w32CType w32GetCType w32SetCType addToCType removeFromCType w32Encode w32MaxWidth w32ToString w32extract_formats w32rand32 w32rectangle_delta w32llSetAbort w32peek2 w32peek_string w32peek_string16 w32manage_mem w32release_mem w32define_union w32specialise w32allotted_handle w32allotted_length w32allotted_buffer w32buffer_address w32buffer_length w32allotted_sofar w32acquire_mem w32new_memset w32acquire_handle w32handle_to_memory w32release_handle w32allot w32allotted_size w32define_this_struct w32address w32copy_field w32copy_struct w32poke_words w32store w32fetch w32realise w32from_memoryEx seek w32from_memory w32set_memory w32to_memoryEx w32to_memory setPreprocessDataIn setStartWithSize isFieldOf unicode_to_ansi ansi_to_unicode alloc_bstr peek_unicode peek_bstr free_bstr where flush lock_file unlock_file dir current_dir chdir allow_break check_break walk_dir reg_com_error print_com_error com_err_out com_error make_variant get_variant seq_fetch get_array vt_label_to_value vt_value_to_label vt_value_to_size_label vt_value_to_size_value vt_to_c_type create_safearray destroy_safearray BLOCKS
Kind regards,
Bruce.
2. Re: Suggestion for V4 re DLLs
- Posted by ghaberek (admin) Oct 21, 2008
- 1003 views
You can edit the objfiles.lnk file before running emake and remove all those routines from being exported. Everything from your library should be at the very bottom. Just remove the EXPORT lines, nothing else.
-Greg