Home |
RTTarget-32 Programming Manual Running Win32 Programs without Win32 Running a Program on the Target Running with or without Paging Installing Hardware Interrupt Handlers Catching NULL Pointer Assignments Running without Run-Time System Configuration for Debug and Release Builds Linking Rtt32.lib into the EXE Utility MakeDef Using Microsoft Run-Time System DLLs Loading DLLs through a File System Using the MetaWINDOW Graphics Library Custom MP Floating Pointer Structure Compiling and Linking with On Time RTOS-32 |
Utility MakeDefCommandline utility MakeDef can significantly ease the maintenance of .DEF files. MakeDef reads function names from one or more function list files and converts them into a DEF file suitable for exporting or importing these functions for various compilers. Regardless of the used compiler, MakeDef always uses the same naming conventions as Win32: no function names pre- or postfixes. MakeDef's command line: Makedef [Options] DLLName DefFileName F.Lists... Available options are:
Parameter DLLName is the name (with file name extension) of the DLL for which an import or export library is to be generated. Parameter DefFileName is the name of the output file. Parameter F.Lists is one or more function name list file. Function name list files are line oriented. Each line must start with a function name without leading underscore. If the function uses the stdcall calling convention, the number of bytes pushed onto the stack as parameters must follow. Blank lines or lines starting with a colon ";" are ignored. Example:; sample function list file for MakeDef CreateFile 28 ; Win32 API functions use stdcall malloc ; this is a cdecl function On Time RTOS-32 is shipped with function list files for all APIs it makes available. The following files are available in directory Source: Rtt32api.txtRTTarget-32's native API. Win32api.txtRTTarget-32's Win32 emulation API. Rtk32api.txtRTKernel-32's native API. W32apimt.txtRTKernel-32's Win32 emulation API (only functions not covered by Win32api.txt). Rtf32api.txtRTFiles-32 native API. Pegbc.txtRTPEG-32 native API for Borland compilers. Pegbcu.txtRTPEG-32 native API for Borland compilers (Unicode version). Pegms.txtRTPEG-32 native API for Microsoft compilers. Pegmsu.txtRTPEG-32 native API for Microsoft compilers (Unicode version). Rtv32api.txtRTVmf-32 native API. Rth32api.txtRTRth-32 native API. Rtipapi.txtRTIP-32 native API. Pppapi.txtRTIP-32/PPP native API. Ftpapi.txtRTIP-32/FTP Client/Server native API. Tftpapi.txtRTIP-32/FTFP native API. Websrvapi.txtRTIP-32/Web Server native API. Mailapi.txtRTIP-32/SMTP/POP3 native API. Telsrvapi.txtRTIP-32/Telnet Server native API. Telnetapi.txtRTIP-32/Telnet Client/Server native API. Snmpapi.txtRTIP-32/SNMP native API. Dhcpapi.txtRTIP-32/DHCP Client/Server native API. Dhcpcapi.txtRTIP-32/DHCP Client native API. Sntpapi.txtRTIP-32/SNTP Client native API. Smb3capi.txtSMB3 Client native API. Smb3sapi.txtSMB3 Server native API. Demo programs DLLDemo2 and DLLDemo3 show how MakeDef can be used.
|