LibComp


LibComp screen shot.

Introduction:

LibComp (LibraryCompiler) is a utility for creating user libraries and residents for the PureBasic language.


User interface

When you run the program, it opens a maximized window with 7 tabs as follows:

The following sections describe each of the above mentioned tabs.

File Processing

PureBasic Source

ASM Source

DESC Source

Help

User Libraries

Residents


How does it work?

• Select PureBasic code containing your procedures.

Example: GetOsName.pb
ProcedureDLL.s GetOSName() ;-Get OS Name
Protected Size
Protected Name$
Protected Result
Protected Key

Size=#MAX_PATH
Name$=Space(Size)
Result=RegOpenKeyEx_(#HKEY_LOCAL_MACHINE,
" + #DQUOTE$ + "SOFTWARE\Microsoft\Windows NT\CurrentVersion" + #DQUOTE$ + ",0,#KEY_ALL_ACCESS,@Key)" + #CRLF If Result=0" + #CRLF RegQueryValueEx_(Key," + #DQUOTE$ + "ProductName" + #DQUOTE$ + ",0,0,@Name$,@Size)" + #CRLF RegCloseKey_(Key)" + #CRLF EndIf" + #CRLF ProcedureReturn Name$" + #CRLF EndProcedure" + #CRLF

• The compile button creates an ASM file containing the assembler code of your procedures, as well as a DESC file containing the description of each of your procedures and the system dependencies necessary for the library.

• The help for each of your procedures is automatically added to the DESC file. You have the ability to modify the content.

Example: GetOSName, () - Returns the name of the operating system.

This help line appears at the bottom of the IDE. In that case, do not forget to click on the Save button.

• Finally, the Make Lib button creates the library in the "Libraries\UserLibraries" folder of the PureBasic installation folder.

• Restart compiler. (IDE: Menu Compiler -> Restart compiler)


History

LibComp is based on a program called MLF. For more information on that program, see "https://github.com/MLF4PB/MLF-Dev".

Distribution

The program source files are included in a a single ZIP file. Also included are compiled executables for 32 and 64 bit Windows.

Release History

Version Date Description Source
20210226 June 26, 2021
  • First release.
Downloaded 59 times



Please help support our development efforts by donating here:



Hope you enjoy using LibComp!