In article <slrnfvc2ll.9p7.jim@[EMAIL PROTECTED]
>,
Jim <jim@[EMAIL PROTECTED]
> wrote:
> I'm trying to get my head around the very basics of the reachability API
(as
> suggested elsewhere). I found a wee bit of example code that I'm trying
to
> get working, but I'm having problems.
>
> The code is essentially this:
>
> #im****t "reachObject.h"
> #im****t <CoreFoundation/CoreFoundation.h>
> #im****t <SystemConfiguration/SystemConfiguration.h>
>
> @[EMAIL PROTECTED]
reachObject
> -(IBAction)button:(id)sender
> {
> ...
> ...
> ...
>
> const char *hostname = "google.co.uk";
> SCNetworkConnectionFlags flags;
>
> if ( SCNetworkCheckReachabilityByName( hostname, &flags )) <---
problem
>
>
> ...
> ...
> }
>
> However, it won't compile. It's essentially claiming to know nothing
about
> SCNetworkCheckReachabilityByName.
Instead of telling us what it "essentially" says, it's usually a good
idea to tell us what it actually says. There's always a chance you're
misinterpreting a new-to-you message, after all.
> I'm guessing that I'm not im****ting the correct framework.
>
> Would that be correct?
You'd want to add SystemConfiguration.framework to your project.
G


|