GeGetFileTime / LocalFileTime



  • 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



  • 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);



  • 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...


Log in to reply