[futurebasic] Re: [FB] Connect to server question

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 2011 : Group Archive : Group : All Groups

From: Deep <Info@...>
Date: Tue, 13 Sep 2011 22:42:24 +0100
Have not checked your code, but assuming the volume "Ann" is mounted on your
desktop via AppleShare, the path would be:

  fn CFSTR( "/Volumes/Ann/Public Ann/Datafolder" )

You need to add the "/Volumes/" at the beginning.

Also, look at the examples using "CFURL" which will be easier to use for
your purposes, and then covert to FSRef if you really need FSRefs. For most
purposes, there is a direct CFURL function available so may not need to
convert to FSRefs.


> From: Piet en Claudine <cp.halsberghe@...>
> Reply-To: <futurebasic@...>
> Date: Tue, 13 Sep 2011 20:51:57 +0200
> To: FB2C Group <futurebasic@...>
> Subject: [FB] Connect to server question
> 
> Hello everybody on the FB-list,
> 
> I¹m planning to write an application that shares a datafile on a volume
> stored upon another computer and connected in a lan network.
> All the computers in that network have a fix IP adress.
> Can FB make a connection with that volume ?
> 
> And if a connection has been made (from FB or manually by the user), how the
> FSRef of the directory at that server can been found?
> 
> Tried something like :
> err = fn FD_PathGetFSRef ( fn CFSTR( "Ann/Public Ann/Datafolder" ), 0,
> @Datadirectory)
> With ŒAnn¹ as the connected servervolume
> (but unlikely, this don¹t work)
> 
> If I do the same local on my computer the Datadirectory= correct
> err = fn FD_PathGetFSRef( fn CFSTR( "Users/Piet/ Public Piet/ Datafolder" ),
> 0, @Datadirectory)
> 
> Many greetings, Piet
> 
> --
> To unsubscribe, send ANY message to: futurebasic-unsubscribe@...
> To access the list archives, go to:  http://freegroups.net/groups/futurebasic/
>