Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    GeDynamicArray String?

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 223 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

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

      On 01/11/2008 at 10:03, xxxxxxxx wrote:

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

      ---------
      Hi!

      Can anyone of you try to execute this two lines on Xcode?

      #include "ge_dynamicarray.h"

      > \> GeDynamicArray<String>z; \> z.ReScope(4); \>

      I get this message on compiling:

      ../../resource/_api/ge_dynamicarray.h:480: error: no matching function for call to 'String::operator new(long unsigned int, String*&)'
      ../../resource/_api/c4d_string.h:46: note: candidates are: static void* String::operator new(size_t, const std::nothrow_t&, int, const CHAR* )

      Does anyone know how I can get this to work? Thanks.

      Bye.

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

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

        On 03/11/2008 at 05:57, xxxxxxxx wrote:

        I think it may have to do with the variable sized nature of the String class. Maybe it would be better to store pointers to the strings in the array? Something like this:

        > \> GeDynamicArray<String\*>z; \> \> String \*str = NULL; \> str = gNew String("hallo"); \> \> z.Push(str); \> \> GePrint(\*z[0]); \> \> z.ReScope(4); \>

        cheers,
        Matthias

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

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

          On 03/11/2008 at 06:13, xxxxxxxx wrote:

          Thanks Matthias,

          i tried GeData which works. I tried out a pointer to String before, but I have to deallocate the object by hand.

          So I think GeData could be much better.

          Bye.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post