The original version of this page can be found at : http://forum.makemusic.com/default.aspx?f=11&m=288783
Posted By : Peter Trubinov - 4/17/2010 5:15 PM
Hello,

I'm in my plug-in trying to get EDTTextBlock data from Finale by calling

FX_LoadEData( ot_TextBlock, &id, &buf, &bufSize );


It reports data size = 48 (if I make a call with the third parameter = NULL) however it fills only first 12 words by real data. In the type definition it is said that last 12 words are unused. Of course documentation (and PDK itself) is of year 1999. However since Finale 2004 there is a new flag used to distinguish between TX entries used for text blocks and those used for text expressions. So these last words of the structure are not unused any more. But I cannot get those data even when I run my plugin with latest Finale versions.

Is it so that FX_LoadEData still gives same amount of data as 10 years ago even though that the type definition is extended? Is there a way to get that extended data?

Thanks a lot,
Peter

Posted By : Peter Trubinov - 4/21/2010 10:30 AM
Okay, thanks for silent support .)

I've found solution myself, it's simple so let it be here for future references.

There is one more parameter in FX_LoadEData function — CONST ELONG version, which is by default equals to PDK version. When I explicitly put 0x0B00020D (which is for Finale 2006 as I think), the function started to return the full amount of data. So now the call looks:

FX_LoadEData( ot_TextBlock, &id, &buf, &bufSize, 0x0B00020D );


All the best,
Peter