[fpc-pascal]XChat plugins using FPC
prologic at daisy.ods.org
Wed Jul 23 09:30:09 CEST 2003
On Wed, Jul 23, 2003 at 08:51:10AM +0200, Michael Van Canneyt wrote:
> On Wed, 23 Jul 2003, James Mills wrote:
> > On Wed, Jul 23, 2003 at 03:28:55AM +0200, Marco van de Voort wrote:
> > > > I can successully compile and test the plugin source listed at
> > > > http://xchat.org/docs/plugin20.html written in C.
> > > >
> > > > However I don't like C much and am wondering if it's possible to do the
> > > > same thing in pascal... ? I know it has to be possible, but I need
> > > > someone to start me off in the right direction...
> > >
> > > Probably yes, but you'll need to convert headers of xchat-plugin.h. The
> > > "h2pas" util can be handy for this. (or at least it can save a lot of time)
> > Now once these headers are converted...
> > When writing the plugin source itself, do I need to use PChar's instead
> > of pascal strings ?
> Your entry and exit points need that, yes. But all in between can be
> done using strings.
Kewl thanks :)
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
- James Mills
Zero Defect Software Engineers Group - ZDSEG
More information about the fpc-pascal