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:
Cinema 4D Version: 10
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
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?
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.
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).