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.

Problem mit include

Empfohlene Antworten

Servus.

Also,

ich hab 4 Dateien, also 2 Klassen.

Form1.h

Form1.cpp

Form2.h

Form2.cpp

-> windows Forms (also zwei Fenster)

in den headerDateien kommen meine Prototypen rein und in die cpp meine eigentlichen Funktionen und auch die Main.

jetzt haben beide Klassen Funktionen, die ich auch gegenseitig nutzen will, d.h. aus Form1 will ich Funktionen nutzen die in Form2 sind und andersrum.

ich hab das bis jetzt so gelöst, dass ich in Form 1 eine Instanz von Form2 erstelle und diese auch öffne (ShowDialog). ich include die Form2.h in die Form1.h und ich kann die Funktionen der Form2 normal benutzen.

Jetzt wollte ich die Instanz von Form1 im Konstruktor von Form2 übergeben


Form2 form2 = gcnew Form2(this)

nur wenn ich jetzt in Form2 "#include "Form1.h" mache, dann wirft der kompiler mit irgendwelche fehler aus.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

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.