Re: Fw: GetSharedLibrary
Re: Fw: GetSharedLibrary
- Subject: Re: Fw: GetSharedLibrary
- From: "Michael Olsen" <email@hidden>
- Date: Fri, 4 Jul 2003 17:10:22 +0100
- Organization: IK Multimedia
>
> > That's not a valid path in Mac OS X.
>
>
>
> Eh, yes it is.
>
>
No, it's not, for real. It's a DOS-format path. OS X uses POSIX format
>
paths. /Library is a valid path. /Volumes/whatever/Library is valid,
>
too, as another example.
>
>
> When I write
>
> [OSXVolume]\Library
>
>
>
> I of course mean that I copied the library to the \Library folder on the
>
> OSX volume... My code doesnt include any path (which is why I'm asking
>
> for the search path).
I don't think you get it...:) [OSXVolume]\Library is just a way of describing where I copied the file...
Call it :MacintoshHD:Library: instead if you want, doesn't matter.
Or call it /Library
The point is that this "path" was not in the code, only in my mail, and I'm sure that this pseudopath was easily understood.
>
I think what you might want to try is the FSFindFolder function. You're
>
not really supposed to rely on any hardcoded paths in the Mac file system,
>
since they are subject to change, and possibly variation from one system
>
to another.
Please read my post again. My code has no path whatsoever...
Ok, to sum up, to be sure you understand:
1: I *copied* the library to /Library/SampleTank.vpa... This is what I tried to explain in my post using the pseudopath
2: I used GetSharedLibrary(...) with "\pSampleTank.vpa" as the file name.
3: The system couldn't find it, even though /Library was supposed to be in the search path
4: Turned out it was a bug in OSX, which caused it to return the wrong error code to me (error code was "can't find library", but the real problem was that the library was found, but had unresolved references)
5: I fixed the library, now it loads fine from /Library/CFMSupport, which appears to be what apple docs is suggesting to use.
Rgds,
Michael Olsen
email@hidden
>
>
Marc
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.