Article # 439, added by Geoworks, historical record
| first | previous | index | next | last |

What syntax should I use for MSG_GEN_RELOC_MONIKER_LIST?



Q. What syntax should I use for MSG_GEN_RELOC_MONIKER_LIST? And do
   I need to declare the monikers as @reloc in addition to using
   MSG_GEN_RELOC_MONIKER_LIST?

A. @send self::MSG_GEN_RELOC_MONIKER_LIST( ConstructOptr(
       OptrToHandle( oself ), pself->FTI_altMoniker ), 0 );

   And no, do not use @reloc.

   There is some additional complexity if those moniker lists are to
   be saved to state, because you'll also need to unrelocate at that
   time. I advise marking them 'ignoreDirty'. Note that you can
   only relocate once, not each time you set the moniker.