Open for bug reports etc.

I have been through the manual a few times (fortunately it is easy to read and small) but I still need to request some clarification. Sorry!srod wrote:The help manual examines these problems quite thoroughly.
I assume this means all variables, types and operators and the following (I assume again) non-library commands:srod wrote:Of course the first question is whether static libs created with PB can be used in other languages? The answer is yes, providing that your library does not use any commands which reside within any of PB's user libraries!
Code: Select all
Break : Continue
Define
Dim : ReDim
End
Enumeration : EndEnumeration
For : Next
ForEach : Next
Global
Gosub : Return
Goto
If : Else : ElseIf : EndIf
Import : EndImport
Interface : EndInterface
Macro : EndMacro
NewList
Procedure : EndProcedure
Protected
Prototype
Pseudotype
Repeat : Until
Select : EndSelect
Shared
Static
Structure : EndStructure
Swap
While : Wend
With : EndWith
Code: Select all
;coffIT demo program.
;By Stephen Rodriguez.
;Import an external lib.
Import "User32.lib"
MsgBox(Window.l, Body$, Title$, Flags.l) As "_MessageBoxA@16"
EndImport
ProcedureDLL CallImport(hWnd, text$)
MsgBox(hWnd, text$, "Hello from coffIT!", 0)
EndProcedure
After I've had some sleep!milan1612 wrote:Great work srod![]()
When can we expect the second version (*.lib output)?
And btw. does the name refer to the COFF format or
your immense COFFee consum during the creation?
Didn't know that, I'm gonna give it a try...srod wrote:@Milan : there is nothing stopping you using coffIT to create .libs right now (before version 2 is released).
All you need to do is split your source into individual source files, -say one for each function.
Run each function/file through coffIT and then use POLIB on all the resulting .obj files to create a .lib.
The only thing is that you will need to export all data (e.g. variables) which needs to be shared amongst the functions etc. and also export all 'internal' functions so that they are accessible throughout the library.