[C++] Error Hulp

Status
Niet open voor verdere reacties.

w00tare

Gebruiker
Lid geworden
10 jul 2009
Berichten
216
Hallo,

Ik zit al een paar dagen met deze errors:

Code:
1>D:\Program Files\Microsoft SDKs\Windows\v6.1\\include\iphlpapi.h(391) : error C2065: 'PMIB_IPSTATS' : undeclared identifier
1>D:\Program Files\Microsoft SDKs\Windows\v6.1\\include\iphlpapi.h(391) : error C2146: syntax error : missing ')' before identifier 'Statistics'
1>D:\Program Files\Microsoft SDKs\Windows\v6.1\\include\iphlpapi.h(391) : warning C4229: anachronism used : modifiers on data are ignored
1>D:\Program Files\Microsoft SDKs\Windows\v6.1\\include\iphlpapi.h(393) : error C2059: syntax error : ')'
1>D:\Program Files\Microsoft SDKs\Windows\v6.1\\include\iphlpapi.h(398) : error C2065: 'PMIB_IPSTATS' : undeclared identifier
1>D:\Program Files\Microsoft SDKs\Windows\v6.1\\include\iphlpapi.h(398) : error C2146: syntax error : missing ')' before identifier 'Statistics'
1>D:\Program Files\Microsoft SDKs\Windows\v6.1\\include\iphlpapi.h(398) : warning C4229: anachronism used : modifiers on data are ignored
1>D:\Program Files\Microsoft SDKs\Windows\v6.1\\include\iphlpapi.h(400) : error C2059: syntax error : ')'
1>D:\Program Files\Microsoft SDKs\Windows\v6.1\\include\iphlpapi.h(412) : error C2065: 'PMIB_TCPSTATS' : undeclared identifier
1>D:\Program Files\Microsoft SDKs\Windows\v6.1\\include\iphlpapi.h(412) : error C2146: syntax error : missing ')' before identifier 'Statistics'
1>D:\Program Files\Microsoft SDKs\Windows\v6.1\\include\iphlpapi.h(412) : warning C4229: anachronism used : modifiers on data are ignored
1>D:\Program Files\Microsoft SDKs\Windows\v6.1\\include\iphlpapi.h(414) : error C2059: syntax error : ')'

Dat gaat z'on en dat een paar keer (totaal 500~ errors),

Ik heb al wat libs geprobeerd te includen maar het lukt maar niet.

Ik hoop dat iemand hier weet wat er aan de hand is.

Groeten.
 
Dat is hier niet uit op te maken.
Vermoeden: een fout voor de include file waarin je de foutmeldingen krijgt. Eén sluithaakje vergeten ofzo en je krijgt vaak een hele riedel aan foutmeldingen.
 
je kan ergens inderdaad een () vergeten zijn of een ; of < of > etc
 
Ik heb ook andere sources geprobeerd, precies zelfde errors.
 
Code:
#if (NTDDI_VERSION >= NTDDI_XP)
ULONG
WINAPI
GetIpStatisticsEx(
    OUT PMIB_IPSTATS Statistics,
    IN ULONG Family
    );

ULONG
WINAPI
SetIpStatisticsEx(
    IN PMIB_IPSTATS Statistics,
    IN ULONG Family
    );

ULONG
WINAPI
GetIcmpStatisticsEx(
    OUT PMIB_ICMP_EX Statistics,
    IN ULONG Family
    );

ULONG
WINAPI
GetTcpStatisticsEx(
    OUT PMIB_TCPSTATS Statistics,
    IN ULONG Family
    );

ULONG
WINAPI
GetUdpStatisticsEx(
    OUT PMIB_UDPSTATS Statistics,
    IN ULONG Family
    );
#endif
 
Status
Niet open voor verdere reacties.

Nieuwste berichten

Terug
Bovenaan Onderaan