CoreMessage

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 13/06/2008 at 04:41, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   10 demo 
Platform:   Windows  ;   
Language(s) :     C++  ;

---------
Hi,

In the "myplug" I do:

SpecialEventAdd(MY_ID, 666, 888);

In the MyPlug::CoreMessage I do

switch (id)
case MY_ID:{GePrint(LongToString((LONG)msg.GetLong(BFM_CORE_PAR1)));}

I always get 0 (zero), I think it should be 666, or 888 if BFM_CORE_PAR2

Jan

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 13/06/2008 at 08:39, xxxxxxxx wrote:

Never mind, found it, the API has changed.
Jan

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 07/09/2009 at 10:35, xxxxxxxx wrote:

To prevent anyone else wasting _hours_ over this, as I have just done, the magic change is simply the replacement of 'GetLong' with 'GetVoid'.