• 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: Tomas Zahradnicky <email@hidden>
  • Date: Fri, 8 Aug 2003 01:31:33 +0200

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
--
Ing. Tomas Zahradnicky, Jr.
Production Manager, 24U Software
Associate Member, Filemaker Solutions Alliance
mailto:email@hidden
http://www.24uSoftware.com
_______________________________________________
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: Pavan Vyas <email@hidden>
References: 
 >Re: Problem with getting Buitin Ethernet Address on OSX using OT (From: Pavan Vyas <email@hidden>)

  • Prev by Date: Problems with Open Transport on MacOS X
  • Next by Date: Re: Problems with Open Transport on MacOS X
  • 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