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.

MFC GUI mit C++ Projekt

Empfohlene Antworten

Hallo Forum,

ich bin neu hier und hätte gleich ein Problem bei dem mir vielleicht jemand helfen könnte.

Ich habe ein C++ Programm (ohne GUI) und ein MFC Projekt, dass jetzt als GUI für dieses Programm dienen soll. (Beides erstellt in Studio 2003)

Mein MFC-Projekt habe ich als statische Lib erstellt und in das C++ Programm eingebunden, ohne Linker Errors etc.

Jetzt müsste ich aus dem C++ Programm die GUI aufrufen. Da ich sowas aber noch nie gemacht habe, habe ich keine Ahnung wie ich ansetzen muss...

Bitte helft mir!

Grüße,

Alex

Die Lib beinhaltet das gesamte MFC Programm mit Dialogen etc.

Dieses Programm hat eine Hauptklasse (CMyApp). Von dieser Hauptklasse habe ich eine globale Instanz auf die ich vom C++ Programm aus zugreifen kann.

extern CMyApp theApp
Wenn ich dieser Instanz in C++ über die Funktion
theApp.InitInstance()
den Befehl gebe, den Hauptdialog zu initiieren bekomme ich Asserts on masse, da ja die ganzen AFX... - Member nicht gesetzt wurden. Setze ich die AFX...- Member über die Funktion
AfxWinInit(hInstance, hPrevInstance, lpCmdLine, nCmdShow

erzeugt er eine (nicht vorhandene) Oberfläche des C++ Projektes und nicht des MFC Programms.

Wie du siehst, hab ich da schon diverse Möglichkeiten durchgespielt aber bisher ohne erfolgreiches Resultat :(

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.