Creating boolean objects



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

    On 24/08/2004 at 09:23, xxxxxxxx wrote:

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

    ---------
    I can't find any information about creating a boolean object.

    I think it must be something like

    BaseObject *obj;
    obj = AllocObject(0boole,TYPE);

    but i did not manage to find any correct type.

    Maybe there's a specific initialization for boolean objects...

    Thanks.



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

    On 24/08/2004 at 10:43, xxxxxxxx wrote:

    Try this:

    BaseObject* obj;
    obj = BaseObject::Alloc(Oboole);

    That should work better. From where did you pull AllocObject() (it's not in the SDK anywhere).



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

    On 27/08/2004 at 01:17, xxxxxxxx wrote:

    well, the Alloc() function is not in my sdk, maybe we're not using the same version...and it's not part of the BaseObject class
    and by using AllocObject(Oboole), the returner object has the NULL adress...



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

    On 27/08/2004 at 07:08, xxxxxxxx wrote:

    Okay. I checked the 8.1 SDK. You're using the 7.3 SDK?

    The docs say that it is: AllocObject(LONG type, LONG subtype = 0). There are no subtypes for a boolean object, so the subtype value can be omitted (default will be used).

    BaseObject* obj;
    if ((obj = AllocObject(Oboole)) == NULL) // do error response

    Sorry about the confusion.



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

    On 27/08/2004 at 11:34, xxxxxxxx wrote:

    Sorry about the confusion.

    No need to apologize. The original poster should have make clear that he is using an old SDK version. He even had 2 chances to do so (by telling and by specifying it in the according field. Because the post says 8.100) ;)

    Samir



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

    On 30/08/2004 at 02:33, xxxxxxxx wrote:

    in fact i'm using c4d v.8 so i made a mistake between C4D version and SDK version...


Log in to reply