Question Locked

Mac Address Change source codes compilation error

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

There's a program known as Macshift ( http://devices.natetrue.com/macshift/ ), the
source codes are available too.

But however, when I tried to compile with Dev
C++ or Visual C++ on WinXP, there were
compilation errors:

netcon.h: No such file or directory
In function `void ResetAdapter(char*)':
80: warning: `__stdcall__' attribute only
applies to function types
80: error: `NETCON_PROPERTIES' undeclared (first
use this function)
80: error: (Each undeclared identifier is
reported only once for each function it appears
in.)
80: error: expected primary-expression before
')' token

86: error: invalid conversion from `void
(*)(tagNETCON_PROPERTIES*)' to `void*'
96: error: `INetConnectionManager' undeclared
(first use this function)

96: error: `pNCM' undeclared (first use this
function)
100: error: `__uuidof' undeclared (first use
this function)
105: error: `IEnumNetConnection' undeclared
(first use this function)
105: error: `pENC' undeclared (first use this
function)
106: error: `NCME_DEFAULT' undeclared (first use
this function)
111: error: `INetConnection' undeclared (first
use this function)
111: error: `pNC' undeclared (first use this
function)
113: error: `pNCP' undeclared (first use this
function)
123: error: `NcFreeNetConProperties' cannot be
used as a function

Any idea how to fix it? Thanks.

4 replies

by older mycroft

Asking the guy who actually wrote the code?

Nathan True (macshift@nospam.co.uk@natnonspammingetrue.com)

[i]Also, if you've downloaded his utility, why are you bothering fighting with the accompanying source code?[/i]

by admin444

i had problem compiling the original source
codes... that is why...

by older mycroft

#1 Have you asked the author yet?

#2 To be in possession of the source code, you [b]MUST[/b] also have the compiled executable, so why are you bothering with C++ source code that is clearly giving you a problem.

And since no-one (that I know of) at TR actually wrote this code... ;)

This discussion is closed to new replies.