Re: MoreNetworkSetup and CodeWarrior 7
Re: MoreNetworkSetup and CodeWarrior 7
- Subject: Re: MoreNetworkSetup and CodeWarrior 7
- From: Jens Bauer <email@hidden>
- Date: Fri, 17 May 2002 13:22:38 +0200
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.