sorry, i forgot to mention: if it's just a file like test.dll then it works,
but the string looks like "c:\test"\test.dll and the windows library load
will be done. but
"c:\test"\osg_plugin_xxx\test.dll  the lib load no longer done by the
Windows API. Strangs, was a odd in my application.

2007/8/15, Adrian Egli <[EMAIL PROTECTED]>:
>
> The problem was, that in some cases the OSG Library Path wasn't parsed
> correctly.
> It appended a quote (") at the begin and the end of the string of each
> path. It was appended
> in my application, so what was happended in the OSG world. just before
> appending the prepend
> the GetFullPathName was able handling such a bad file string:
>
> example:
> path = "c:\test"
> file = 'test.dll'
>
> concatPaths(path,file)
>
> and the method GetFullPathName ("c:\test"\test.dll ) returns: current
> working dir "\" c:\test"\test.dll
>
> c:\temp\"c:\test"\test.dll  what is very bad for a file string.
>
> without quotes
> it returns: c:\test\test.dll
>
> /adegli
>
>
>
>
>
> 2007/8/15, Robert Osfield < [EMAIL PROTECTED]>:
> >
> > Hi Adrian,
> >
> > I am curious, what problems did the prepending introduce?
> >
> > Robert.
> >
> > On 8/15/07, Adrian Egli <[EMAIL PROTECTED]> wrote:
> > > Sorry, Robert
> > > forget this topic.
> > >
> > > /adegli
> > >
> > > 2007/8/14, Adrian Egli <[EMAIL PROTECTED]>:
> > > >
> > > >     // BEGIN ADDED Adrian Egli
> > > >     // may we like to switch off the prepend look up
> > > >     // than just define this definition in the console before
> > starting the
> > > application
> > > >     char* ptr;
> > > >     if( (ptr = getenv( "OSG_NO_PLUGIN_PREPEND" )) )
> > > >     {
> > > >         prepend="";
> > > >     }
> > > >     // End ADDED
> > > >
> > > >
> > > > 2007/8/14, Adrian Egli < [EMAIL PROTECTED]>:
> > > >
> > > > > hi robert,
> > > > >
> > > > > i would like to have the ability to switch off the prepend for my
> > > appliction, may others would also like to be able doing this.
> > > > > can you please check in the attached file: registry.cpp
> > > > >
> > > > > just search for Adrian Egli
> > > > >
> > > > > thanks adrian
> > > > >
> > > > > --
> > > > > ********************************************
> > > > > Adrian Egli
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > ********************************************
> > > > Adrian Egli
> > >
> > >
> > >
> > > --
> > > ********************************************
> > > Adrian Egli
> > > _______________________________________________
> > > osg-users mailing list
> > > [email protected]
> > >
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> > >
> > >
> > _______________________________________________
> > osg-users mailing list
> > [email protected]
> >
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
>
>
>
> --
> ********************************************
> Adrian Egli




-- 
********************************************
Adrian Egli
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to