I've been working on converting the TBPtest.dpr example that Stefan posted to C. I have several issues that prevent it from working correctly though.
1) When added in the Spam Plugin options, the plugin is loaded, but the information is not displayed in the listbox. I can tell a new entry is created, but it is blank. Once closed, the blank entry does not come back. So far, I see two calls to TBP_GetName. From what I can tell, the first call is to see if it has a size and the second is to copy the string. So far so good. I've checked and the string is sucessfully copied to the one passed on the second call. After these two calls, the dll is unloaded and no information is shown. Is this normal? Also there are no calls to TBP_GetVersion. 2) According to Stefan, TBP_Setup should return TRUE if the user made changes otherwise false. However, whenever I return true, the plugin unloads immediately. I suspect this is a bug in the bat's code because when I add the plugin with TBP_NeedConfig returning true and TBP_Setup returning true, The Bat! never even makes a call to TBP_GetName and unloads immediately after calling TBP_Setup. 3) Shouldn't TBP_Setup pass the HWND of the preferences window (or whatever window its called from)? Because it appears that the TB preferences waits on the plugin to return from TBP_Setup before it will close, I would prefer to make my plugin's options dialog modal with respect to that window to prevent the person from clicking ok on the tb prefs and then having it close automatically when you return from TBP_Setup (which is the current behavior). I have been unable to test the TBP_GetSpamScore as I can't get that far, but from looking at it, it looks fairly straighforward. I plan on writing a simple plugin that allows you to add perl regular expressions along with an associated score. Then all of the expression results are added up to get the result. Rob ________________________________________________ Current version is 1.62 | "Using TBDEV" information: http://www.silverstones.com/thebat/TBUDLInfo.html

