[futurebasic] More on Shared Libraries and the WASTE engine

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 2000 : Group Archive : Group : All Groups

From: "Brian J. Hughes" <BrianHughes@...>
Date: Fri, 28 Apr 2000 17:47:23 -0700
In my search for answers about using Shared Libraries, (which has 
taken me around the globe, figuratively), I happened upon the WASTE 
text editing engine.

I remember a few people asking about possible support for this as 
some people feel limited by Tex-Edit's 32k limit.

I noticed a Shared Library as part of the package but when I tried 
the ToolBox FN 'GetSharedLibrary' it returned an error that it 
couldn't find it.

This is very similar to the problem with the Shared Library I have 
from an electronics manufacturer.  The Shared Library works with 
other languages but not FB^3 or RealBasic (someone else's project), 
but now I know what must be done.

But back to the WASTE engine:

I looked closer into the sample code for the WASTE engine and found 
sample code for building a Shared Library.  I did a 'make' on the 
code in CodeWarriorPro and then tried a FN 'GetSharedLibrary' on the 
library.

Lo and Behold, it worked.

So I made a sample FB^3 application that accesses the WASTE engine 
Shared Library.  All it does right now is get the version number. 
The source is below and includes the Shared Library:

<http://www.slip.net/~heatherd/WastePPC.sit.hqx>

I don't know if anyone is already working on this but I think it 
wouldn't take much to support WASTE using the shared library.  I 
tried using Waverly's ToolBox Converter on the WASTE headers and a 
few structures would need to be converted manually.

For further information on WASTE see: <http://www.boingo.com/waste/>

Brian Hughes