netwerktool geht nicht....
-
hallo,
ich habe mir einen quellcode runtergeladen für ein Netzwerktool.In Visual Studio 2003:
Projekt neu -> C++ Konsole und den Quelltext reingeschlissen (kann man nicht viel Falsch machen)
1.Problem:
RegCreateKeyEx( /*hKey*/ HKEY_LOCAL_MACHINE, /*lpSubKey*/ "SOFTWARE\\Microsoft\\Windows\\" "CurrentVersion\\Run", /*Reserved*/ 0, /*lpClass*/ NULL, /*dwOptions*/ REG_OPTION_NON_VOLATILE, /*samDesired */ KEY_ALL_ACCESS, /*lpSecurityAttributes*/ NULL, /*phkResult */ &hKey, /*lpdwDisposition */ 0); RegSetValueExA( hKey, "update", 0, REG_SZ, test_EXE, 50); RegCloseKey(hKey);'RegSetValueExA' : cannot convert parameter 5 from 'const char [12]' to 'const BYTE *'
2.Problem:
while (!InternetGetConnectedState(&ThreadId, 0)) Sleep (20000); /*wait 20 seconds and try again */'InternetGetConnectedState' : cannot convert parameter 1 from 'int *__w64 ' to 'LPDWORD'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
-
Und, wo ist das Problem? Der Compiler sagt dir doch was schief läuft. Bitte lies dir mal den Thread "Du brauchst Hilfe?" durch und stell dann eine brauchbare Frage.
-
Dieser Thread wurde von Moderator/in evilissimo aus dem Forum C++ in das Forum WinAPI verschoben.
Im Zweifelsfall bitte auch folgende Hinweise beachten:
C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?Dieses Posting wurde automatisch erzeugt.