> 
> Why change it?
> Working with UTF-8 would preserve umlauts and other characters.
> 
>> vUser=CFStringCreateWithCString 
>> (kCFAllocatorDefault,vUserCString,kCFStringEncodingMacRoman);  
> 
> C string function? Why? A RB string can have chr(0) inside.
> 
> REALGetStringCFString could be an option for you...


Thanks Christian,

Well, I am a newbie... 


Thanks to you I found a lot of documentation that came with RB2007 including 
REALGetStringCFString.



Now to my next problem.


I'm writing a plugin to enable me to mount file servers. (Mac)



The core of the plugin in this:


        CFRunLoopRef    runLoop;
        EventLoopRef    evloop =  GetMainEventLoop();

        runLoop =(CFRunLoopRef) GetCFRunLoopFromEventLoop(evloop);
        
        
        vErr=FSCreateVolumeOperation(&vVolumeOp);
        
vErr=FSMountServerVolumeAsync(vUrlRef,vMountDir,vUser,vPassword,vVolumeOp,nil,vFlags,MyFSVolumeMountProc,runLoop,
 kCFRunLoopDefaultMode); 

                //Wait for mount finnish
        while (!gDone) {
                                
                        }




void MyFSVolumeMountProc (FSVolumeOperation volumeOp,void * clientData,OSStatus 
err,FSVolumeRefNum mountedVolumeRefNum)
{
        
        gDone=true;
        gMountRes=err;

}

This is basically code that I'm moving from a SuperCard XFCN I wrote a couple 
of years ago.

Most of it works in my RB Plugin except from the fact that MyFSVolumeMountProc 
is never called. (It should be called whenever FSMountServerVolumeAsync is done)


I guess I'm doing something here that I shouldn't when creating RB plugins...



Dan




 


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to