Friday, January 17, 2003, 6:03:53 PM, you wrote:

> Robert-

> Did one better - I made them enums (attached).

Ok.  Now I want to know how to get the data in TBP_GetSpamScore.  I
tried this, but it causes TB to disappear:

----
int __stdcall __declspec(dllexport) TBP_GetSpamScore(int msgid, TBPGetDataProc 
dataProc) {
char *subject;
int i;
i = dataProc(msgid,mpidMessageSubject,NULL,0);
if (i>0) {
  subject = (char *)GlobalAlloc(GPTR,i+1);
  dataProc(msgid,mpidMessageSubject,subject,i);
  // TB vanishes
  GlobalFree();
}
return 0;
}
----

Rob


________________________________________________
Current version is 1.62 | "Using TBDEV" information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to