In old CW project I had shared library with resources, now I remade it
and got dylib in XCode.
In program I trying to load it with GetDiskFragment, to load one
necessary function from dylib as from shared library:
if ((err = FSMakeFSSpec(0, 0, (unsigned char*)&Name, &fSpec)) == noErr)
{
if ((err = GetDiskFragment(&fSpec, 0, 0, fSpec.name, kPrivateCFragCopy,
&connID, (Ptr *)&mainProc, errName)) == noErr)
{
}
}
GetDiskFragment fails with 2806 error...
I'm interested what is the fSpec.name?
Also in old shared library I* had resource dialod, Can I load it from
dyLib???
Thanks!!!