Bats-

Here's some plugin sample code that should serve as a starting point
for coding in C++. It's working now in Visual C++, Borland C++ Builder
6.0, and Metrowerks Codewarrior 8.0. The compiler-specific parts are
at the beginnings of both files. There are two source files in the zip
file here, a .h header file and a .cpp stub file. I've also included a
project file for C++ Builder.

The sample compiles to a plugin DLL that just notifies the user when
functions are called. The messagebox calls should be replaced by
actual code where appropriate. Note that if you're just implementing
spam filters you don't need the macro functions. Likewise if you're
writing a plugin that just handles macros you don't need to implement
the spam functions.

The project options should be set to compile a DLL with an extension
of .tbp. You should also make sure that the runtime libraries are
bundled with the DLL for distribution.

I don't have the gcc compiler (or any other) installed at the moment,
so someone else will have to take on that conversion. There's actually
very little that's compiler-specific here - it's mostly a matter of
getting the TBP_EXPORT macro right.

-- 
-Mark Wieder
 [EMAIL PROTECTED]

Stefan-

Some documentation, especially about ITBPDataProvider, would be
great...

Attachment: TBPluginStub.zip
Description: Zip compressed data

________________________________________________
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to