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,

ich habe gerade eine Header-Datei eingebunden, und beim Kompolieren, tickt der Compiler plötzlich aus (VC 5.0)

Muss ich da erst noch Namespaces, oder so def.

Bei der HeaderDatei handelt es sich um Winbase und Shellapi....

ja, also ich include folgende headerdatei

#include <winbase.h>

, weil ich die sleep-funktion benutzen will...

Der VC-Compiler meckert dann solche Sachen an wie (kleiner Auszug):

:\Programme\DevStudio\VC\INCLUDE\shellapi.h(33) : error C2065: 'HDROP' : nichtdeklarierter Bezeichner

C:\Programme\DevStudio\VC\INCLUDE\shellapi.h(33) : error C2501: 'DECLARE_HANDLE' : Fehlende Deklaration

C:\Programme\DevStudio\VC\INCLUDE\shellapi.h(35) : error C2501: 'DECLSPEC_IMPORT' : Fehlende Deklaration

C:\Programme\DevStudio\VC\INCLUDE\shellapi.h(35) : error C2239: Unerwartetes Token 'identifier' nach der Deklaration von 'DECLSPEC_IMPORT'

Was habe ich falsch gemacht?

danke, das funktioniert.

würde trotzdem gerne wissen, warum es mit winbase.h nicht geht.....

wahrscheinlich gibt es dann in der windows.h einen namespace, oder?

Ich bring uns erstmal dahin, wo wir OnTopic sind ;)

Das hat nichts mit Namespaces zu tun. Die Fehler stammen daher, dass diese Bezeichner in der windows.h - oder in einer der Dateien, die windows.h #includet - deklariert bzw. definiert werden. Und da Du windows.h nicht #includet hattest, konnte der Compiler mit diesen Symbolen nichts anfangen.

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.