• 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: MoreNetworkSetup and CodeWarrior 7
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MoreNetworkSetup and CodeWarrior 7


  • Subject: Re: MoreNetworkSetup and CodeWarrior 7
  • From: Duane Murphy <email@hidden>
  • Date: Fri, 17 May 2002 09:15:38 -0700

Casting is the correct answer. The problem is a that void** has different
characteristics than void* (in C++). There was an article several months
ago in C/C++ Users Journal concerning this and why it is so.

Unfortunatelly with this interface, I think casting is a reasonable solution.


--- At Fri, 17 May 2002 13:22:38 +0200, Jens Bauer wrote:

>Hi Chris,
>
>Simply fix it by typecasting...
>I think it's some void * that it doesn't like too much if I recall it right.
>-So I believe you should change
>
>
>MNSGetPref(a, b, c, d, e);
>
>to
>
>MNSGetPref(a, b, c, (void **) d, e);
>
>(something very close to this)
>-Note: If you are trying to use MoreNetworkSetup on Mac OS X, you can't.
>You need to use MoreSCF.
>
>
>On Thu, 16 May, 2002, Chris Edgington
><email@hidden> wrote:
>
>>We've got this control panel applet for our USB ADSL modem, which is
>>built using CodeWarrior 7. It is not a carbon app. It's a simple
>>single-source C++ program with a gui. I need to add network setup
>>support. So, I added the files from MoreNetworkSetup, but I've got
>>compile problems with those files. Here are some examples of the errors
>>... Anybody know what the problem is:
>>
>>Error : function call 'MNSGetPref(const MNSDatabaseRef *, const
>>CfgEntityRef *, @enum2214MoreNetworkSetup_c, CfgSetsVector **, unsigned
>>long *)' does not match
>>'MNSGetPref(const MNSDatabaseRef *, const CfgEntityRef *, unsigned long,
>>void **, unsigned long *)'
>>MoreNetworkSetup.c line 571 &vectorPrefData, &vectorPrefSize);
>>
>>Error : function call 'MNSGetPref(const MNSDatabaseRef *, const
>>CfgEntityRef *, @enum2219NetworkSetupHelpers_c, unsigned char **,
>>unsigned long *)' does not match
>>'MNSGetPref(const MNSDatabaseRef *, const CfgEntityRef *, unsigned long,
>>void **, unsigned long *)'
>>NetworkSetupHelpers.c line 221 err = MNSGetPref(ref, entity,
>>kOTCfgUserVisibleNamePref, &entityName, &junkSize);
>
>
>Love,
>Jens
>
>--
>Jens Bauer, Faster Software.
>-Let's make the World better, shall we ?
>_______________________________________________
>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.

...Duane Murphy
Efficient Networks, Inc.
<http://www.efficient.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.

References: 
 >Re: MoreNetworkSetup and CodeWarrior 7 (From: Jens Bauer <email@hidden>)

  • Prev by Date: Re: Re(2): Modified AuthSample and Focus
  • Next by Date: Re: Getting PPP connection state on 10.1 fails mysteriously sometimes
  • Previous by thread: Re: MoreNetworkSetup and CodeWarrior 7
  • Next by thread: Re: MoreNetworkSetup and CodeWarrior 7
  • Index(es):
    • Date
    • Thread