hmm, sometimes this is needed for things like

    csRef<iDataBuffer> rpath = vfs->GetRealPath (config->GetStr (
          cfgkey+"ModelPath", "/xd/models/ships/F2.zip"));
    vfs->Mount ("/xd/ship", rpath->GetData ());

Also iVFS::SymbolicLink uses GetRealPath as per above.

On Friday 13 October 2006 17:52, Jorrit Tyberghein wrote:
> I'm not sure that GetRealPath is working correctly. I have seen it
> return weird results in my case either. Try to avoid using it for now.
>
> But to convert a real path to VFS why do you need GetRealPath() in the
> first place? Why not just mount it directly (after replacing the
> slashes with $/).
>
> Greetings,
>
> On 10/13/06, piotr_obrzut <[EMAIL PROTECTED]> wrote:
> > hi,
> >
> >   I was writing before about following problem:
> >   I get real paths from wxWidgets and I want to convert them to vfs ones
> > even temporary.
> >
> > So I used something like this:
> >
> >   csRef<iDataBuffer> rp = vfs->GetRealPath ("dummy_path/");
> >   vfs->Unmount ("dummy_path/", rp->GetData ());
> >   vfs->Mount ("dummy_path",real_path);
> >
> > though
> >
> >  after this sequence, "vfs->GetRealPath ("dummy_path");" returns
> > something like
> > "e:\programowanie\praca\tto-editor\bin\..\data\zones\dummy_path" (it
> > isn't my real path for sure).
> >
> > What I should do to have correct behaviour (mount my real path
> > temporary)?
> >
> > --
> > greetings,
> > Piotr Obrzut
> >
> >
> > -------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job
> > easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > Crystal-main mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/crystal-main
> > Unsubscribe:
> > mailto:[EMAIL PROTECTED]

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to