Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/05/2007 at 01:56, xxxxxxxx wrote:
User Information: Cinema 4D Version: 8.2 Platform: Language(s) : C++ ;
--------- We have a ClassLib here, and the internal class uses multiple inheritance, it is derived from two other classes. The symptom we saw was that we had NULL pointers in the library struct after retreiving it with checklib/LIBOFFSET. After a while we found out, that cinema seems to expect 4byte function pointers. But for multiple inheritance the function pointer size is 8byte, for virtual inheritance it would be 16byte. I saw that for the sdk and the sdk examples the compiler switch /vms is set, which forces 4byte function pointers. Unfortunally thsi results in errors for multiple or virtual inheritance. We need at least the /vmm option here. So basically what we did here to solve the problem is that we defined the library struct twice, the second one with spare pointers after each real function pointer to achieve an 8byte addressing in the struct. In the external class of the classlib we retreive the library struct and cast it to the "patched" one. Did anybody have the same problem, is our solution the proper one, or is there a better possibility?
On 10/05/2007 at 00:45, xxxxxxxx wrote:
multiple inheritances of c++ classes are not supported because they can cause several problems.
cheers, Matthias