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:
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
obj = AllocObject(0boole,TYPE);
but i did not manage to find any correct type.
Maybe there's a specific initialization for boolean objects...
On 24/08/2004 at 10:43, xxxxxxxx wrote:
obj = BaseObject::Alloc(Oboole);
That should work better. From where did you pull AllocObject() (it's not in the SDK anywhere).
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...
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).
if ((obj = AllocObject(Oboole)) == NULL) // do error response
Sorry about the confusion.
On 27/08/2004 at 11:34, xxxxxxxx wrote:
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)
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...