On 28/05/2013 at 16:30, xxxxxxxx wrote:
Cinema 4D Version: 13
Platform: Windows ;
Language(s) : C++ ;
I'm exploring these types of pointer handlers. And I don't understand how to use them.
When I create them. I only get a very short list of same basic pointer options. Rather than the normal options I expect to see depending on the type of object I'm creating.
Hard to explain. So I'll use a couple of visual examples:
#####First comparison example##### AutoAlloc<BaseBitmap> *myimage myimage-> //<----------- Provides a lot of things I can use to manipulate a bitmap AutoNew<BaseBitmap> *myimage; myimage-> //<----------- Only provides a few things like Assign, Free, a few operators, etc.. #####Second comparison example##### static PickSessionDataStruct *picksession; picksession = gNew PickSessionDataStruct; picksession-> //<---------- Provides things to manipulate the PickSessionDataStruct AutoNew<PickSessionDataStruct> *picksession; picksession-> //<--------- Only provides a few things like Assign, Free, a few operators, etc..
Hopefully that code explains my problem.
Both AutoNew & AutoPtr are only returning a small list of very basic pointer options. Compared to the options I'm expecting and need to get.
I'm sure I'm using them wrong. But the SDK doesn't have any examples to learn from.
Can anyone explain how to use these properly?
Can/should these be used for all object types in place of Alloc and AutoAlloc. Or only in certain specific cases?