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

    GeGetFileTime / LocalFileTime

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 201 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 17/06/2009 at 11:10, xxxxxxxx wrote:

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

      ---------
      Hi there,
      i am having a problem with LocalFileTime.. i get an error that ft is not initialized.

      > `

        
      \>    
      \>            LocalFileTime *ft;  
      \>            ft->Init();  
      \>            GeGetFileTime(GeGetPluginPath() + Filename(fn),GE_FILETIME_CREATED,ft);  
      \>  
      

      `

      would be cool if someone can push me into the right direction..

      thanks and cheers,
      ello

      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 17/06/2009 at 12:05, xxxxxxxx wrote:

        You can't call a method from the pointer without allocating an instance of the class. I'd simply use a heap instance:

        LocalFileTime ft;
        ft.Init();
        GeGetFileTime(....,&ft;);

        If that doesn't work for some reason, then allocate an instance:

        LocalFileTime* ft = gNew LocalFileTime;
        ...
        // And then free it when done!
        gDelete(ft);

        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 17/06/2009 at 13:35, xxxxxxxx wrote:

          thank you! allocating works...

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