Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Winsock - Fehler beim kompilieren!

Empfohlene Antworten

Veröffentlicht

Hi ihr Quellcodegurus!

Ich habe zur Zeit im Betrieb ein bisschen Leerlauf, sodass ich mir gedacht habe: "Mensch, jetzt könnste doch eingtlich mal was mit dem Winsock-Zeuch machen".

Ja das habe ich jetzt auch versucht. Allerdings bleibe ich schon dirket am Start hängen.

Ich habe nämlich folgendes Problem:

Immer wenn ich kompiliere, kommen lauter Fehler aus der includeten winsock2.h. Der bringt Fehler wie Neudeklaration und Doppeldefinition, ihr wisst schon...

MEIN KLEINER QUELLCODE:

#include <windows.h>

#include <winsock2.h>

#include <stdio.h>

int start_winsock();

int main ()

{

long rc;

rc = start_winsock();

if (rc != 0)

{

printf("Fehler in start_winsock! Fehlercode: %d\n", rc);

return 1;

}

else

{

printf("Winsock wurde gestartet!\n");

}

return 0;

}

int start_winsock()

{

WSADATA wsa;

return 0;

return(WSAStartup(MAKEWORD(2,0), &wsa));

}

Ich hoffe jemand weiss was darüber... thx

<edit>

ACHSO: ICH BENUTZE WIN2000 UND MS VISUAL C++ 6.0

</edit>

Jo danke jetzt gehts.

Mal schauen an welcher Stelle ich als nächstes häng...

cu

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.