User Data in .pfb files

New Message Reply Date view Thread view Subject view Author view

Paul Berridge (paulb++at++equipe.ltd.uk)
Mon, 25 Oct 1999 17:46:01 +0100


*** Help Wanted ***

I'm loading a file in one format (Multigen .flt) and trying to save it
in a .pfb format file with my own user data.

As recommended by the pfb man page, I set up the callback functions
before calling pfdStoreFile_pfb with

my_data_slot = pfGetNamedUserDataSlot("my_slot");
pfdUserDataSlot_pfb( my_data_slot, my_descend, my_store, my_load );

as recommended in the pfb manual but this didn't seem to work.

Looking at the pfb source code it seems that my user data function
pointers are being set to 0 by the function copy_udfunc (Performer
version 2.2.5) so my user data descend/store/load functions do not get
called.

So ... what do I need to do to make this work and do I need to do
anything else to be able to read the my_slot user data when I next load
the .pfb file?

And while I'm on the subject, can I store (and later retrieve) the .flt
user data in a .pfb file in the .flt user data slot?

-- 
Paul Berridge
Principal Development Engineer
Equipe Electronics Ltd.
13 Liverpool Gardens
Worthing, W. Sussex
BN11 1RY
ENGLAND

Phone +44 (0) 1903 216622 FAX +44 (0) 1903 216633

mailto:paulb++at++equipe.ltd.uk http://www.equipe.ltd.uk


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Oct 25 1999 - 09:47:48 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.