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.

Empfohlene Antworten

Veröffentlicht

Hi,

an einem meiner PCs bekomme ich bei der Funktion InternetOpenURL()

immer die Fehlermeldung ERROR_INTERNET_NAME_NOT_RESOLVED zurückgegeben,

bei dem anderen gehts ohne Probleme.

Dank "ausführlicher" MSDN Erklärung:

The server name could not be resolved.

habe ich aber keine Ahnung was der Fehler zu bedeuten hat oder wie ich ihn

beheben kann.

Ich hoffe einer von euch kann mir helfen.

Gruß

Guybrush

  • Autor

Ich hab mal den entsprechenden Code in ein neues Projekt gesteckt

und auf beiden PCs laufen lassen. Es lief wieder nur auf dem einen:confused:

Hier mal der Code:


#include <windows.h>
#include <wininet.h>
#include <stdio.h>
#include <conio.h>


main()
{
char szPfad[] = "http://www.compugroup.com";

HINTERNET hInternet,
hFile;


//Verbindng zum Internet über den Internet Explorer aufbauen
hInternet = InternetOpen("Microsoft Internet Explorer",INTERNET_OPEN_TYPE_DIRECT,NULL,NULL,NULL);
if (hInternet == NULL)
{
printf("Die Internetverbindung konnnte nicht aufgebaut werden!");
getch();
return 0;
}

//Handle zur benötigten Datei erstellen
hFile = InternetOpenUrl(hInternet,szPfad,0,0,INTERNET_FLAG_NO_COOKIES,0);
if (hFile == NULL)
{
printf("Die benötigte Datei konnte nicht gefunden werden");
getch();
return 0;
}

InternetCloseHandle(hFile); //Handle zur Quelldatei schließen
InternetCloseHandle(hInternet); //Handle zur Internetverbindung schließen

printf ("OK");
getch();
return 0;
}
[/PHP]

Gruß

Guybrush

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.