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.

Einen Dialog per doModal() in einer Dll aufrufen

Empfohlene Antworten

Veröffentlicht

Hallo miteinander,

ich würde gerne in einer Dll einen Dialog öffnen.

Auf die übliche Art und weise mit einer Variablen der Instanz von der Dialogklasse und deren aufruf mit dem Befehl DoModal() klappt es nicht.

Eine einfache MessageBox klappt ohne Probleme an derselben Stelle.

Ist wahrscheinlich nur wieder ein Verständnissproblem bei mir :rolleyes:

Mfg Joerg.

Servus,

ich habe grade mal in einem alten Source von mir gestöbert und da folgenden

Kommentar gefunden.


By default, MFC uses the resource handle of the main application

to load the resource template. If you have an exported function

in a DLL, such as one that launches a dialog box in the DLL, this

template is actually stored in the DLL module. You need to switch

the module state for the correct handle to be used. You can do this

by adding the following code to the beginning of the function:


	AFX_MANAGE_STATE(AfxGetStaticModuleState( ));


Füge die Zeile mal in deinen Code ein bevor du den Dialog aufrufst.

TinTin

Hallo TinTin,

danke hat hingehauen.

Gruß Joerg

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.