• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem with getting Buitin Ethernet Address on OSX using OT
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with getting Buitin Ethernet Address on OSX using OT


  • Subject: Re: Problem with getting Buitin Ethernet Address on OSX using OT
  • From: Pavan Vyas <email@hidden>
  • Date: Tue, 12 Aug 2003 14:34:11 +1200

Hi Tomas,


My Project is CFM and not Mach-o and so I did what you told me

I.e Created a Bundle for one routine in project builder. Then use the
CFBundle API (thanks to the sample code by Quin that executes gethostname).
It all works fine except I have one question/problem

I am aware that the bundle will need to be installed with the application
for it to run properly otherwise an error will be generated. Is there a way
around this?...if there isn't then what are the conventions....meaning where
is the preferred place to put the bundle upon application install?

Thanks

Pavan

On 8/8/03 11:31 AM, "Tomas Zahradnicky" <email@hidden> wrote:

>> Hi Quin,
>>
>> Yes you are correct,
>>
>> I am trying to design some sort of copy protection for our software. I did
>> look at the GetPrimaryMacAddress.c example. It seems very straight forward
>> in terms of the code complexity, however I could not figure out how to get
>> that compiled on CodeWarrior since it uses the following:
>>
>> #include <CoreFoundation/CoreFoundation.h>
>>
>> #include <IOKit/IOKitLib.h>
>> #include <IOKit/network/IOEthernetInterface.h>
>> #include <IOKit/network/IONetworkInterface.h>
>> #include <IOKit/network/IOEthernetController.h>
>>
>>
>> Any ideas how to get it to work on CodeWarrior since the sample is a Project
>> Builder project?
>>
>
> Pavan,
>
> it depends. If your project is Mach-O then it should be very easy
> to compile it even in CodeWarrior. You just drop IOKit.framework to
> your project, turn on "[X] Use Framework Style Includes" and that is.
> The problem pops up if your project is CFM because you have to use
> either CFM<->Mach-O glue (provided in sample code) since IOKit is not
> accessible directly from CFM
>
> *or*
>
> compile the IOKit code as a bundle with ProjectBuilder, for example,
> export few routines from it and then use CFBundle API to load that
> bundle, get function pointers and execute them without any problems.
>
> -Tomas
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Problem with getting Buitin Ethernet Address on OSX using OT
      • From: Quinn <email@hidden>
References: 
 >Re: Problem with getting Buitin Ethernet Address on OSX using OT (From: Tomas Zahradnicky <email@hidden>)

  • Prev by Date: Re: Where is CFStream sources or is CFStream APSL?
  • Next by Date: Re: Problem with getting Buitin Ethernet Address on OSX using OT
  • Previous by thread: Re: Problem with getting Buitin Ethernet Address on OSX using OT
  • Next by thread: Re: Problem with getting Buitin Ethernet Address on OSX using OT
  • Index(es):
    • Date
    • Thread