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

    Check for same file?

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 289 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 22/01/2010 at 08:23, xxxxxxxx wrote:

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

      ---------
      Hi,

      I have two urls passed as strings. Both urls are pointing at the very same file but they are differently encoded (e.g. the first one uses spaces and the other one uses %20 where space would be and similar).

      Comparing them with string::Compare won´t work and also first putting both urls into a filename object and then compare the filename objects doesn´t work. So I thought there may be a way of comparing them by simply comparing the file they are pointing to. How can I do this? The basefile class unfortunately has no comparison operator.

      Or is there any other way I can check if the urls both point at the same file?

      thank you

      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 22/01/2010 at 08:34, xxxxxxxx wrote:

        Ah just to be sure, I just found FilenameToURL in the 11.5 SDK (if that works then I am off for R11.5, did this also work in R11?). However, I also need a way for comparison in R10 and 10.5.

        thx

        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 22/01/2010 at 11:53, xxxxxxxx wrote:

          ok, solved already (well, not really but I found a different way to accomplish the task).

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