[WASTE-list] WERegisterCustomAttribute

Alfred Van Hoek vanhoek at mac.com
Mon Jun 5 14:25:17 EDT 2006


I have in principle no problem using this api

err = WERegisterCustomAttribute(childItem->tagUserID, childItem-
>options, sizeof(Boolean), childItem->typeVariant, (WEReference)text);

However, an additional call like:

err = WERegisterCustomAttribute(childItem->tagUserID, childItem-
>options, sizeof(SInt32), childItem->typeVariant, (WEReference)text);

will lead to a paramErr:

Exception thrown in function
WE3_CustomAttributeTable::AddCustomAttribute(unsigned long, unsigned
long, unsigned long, unsigned long) (WE3_CustomAttributes.cp, line
32); error code = -50


Note that tagUserID and typeVariant are different. If the first one
is used or the second one, no exception thrown, but registering two
attributes does not work.


I do have some problems (given only one customAttribute is
registered) when it comes to using this attribute. How would this
attribute be displayed in an rtf file? I would like to know, in case
my code is doing something wrong.

Any examples available?

Thanks,

Alfred





More information about the WASTE-list mailing list