Plugin Sample in C++
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... TBPluginStub.zip Description: Zip compressed data http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Plugin Sample in C++
the sources are not the point. it seems that the buttons in the bat do not work. the configure button for plugins do not work for me with TB 1.63/11. they do not call the plugin function. only if i press the right mouse button and choose configure the function gets called. now i created my own working setup dialog which works only with this workaround... achim http://www.silverstones.com/thebat/TBUDLInfo.html
Re[2]: Plugin Sample in C++
Hello all, Tuesday, August 19, 2003, Achim Winkler wrote: the sources are not the point. it seems that the buttons in the bat do not work. the configure button for plugins do not work for me with TB 1.63/11. they do not call the plugin function. only if i press the right mouse button and choose configure the function gets called. now i created my own working setup dialog which works only with this workaround... somebody told here, this bug was fixed in 2.0 Beta/2. -- Bye Marek Mikus Czech support of The Bat! http://www.thebat.cz Using the best The Bat! 2.0 Beta/2 under Windows XP 5.1 Build 2600 Service Pack 1 AMD ThunderBird 1,2 GHz, 512 MB RAM http://www.silverstones.com/thebat/TBUDLInfo.html