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 @ all!

Wer kann mir helfen?!?!

Ich will zu einem CImageList-Objekt ein Bild hinzufügen. Mir ist klar, dass das mit der Methode

int Add( CBitmap* pbmImage, COLORREF crMask )

geschehen muss. Wenn ich ihm ein CBitmap-Objekt zuweise (bei CBitmap* pbmImage) kommt folgende Fehlermeldung:

"error C2664: 'int __thiscall CImageList::Add(class CBitmap *,class CBitmap *)' : Konvertierung des Parameters 1 von 'class CBitmap' in 'class CBit

map *' nicht moeglich".

Bei pbmImage habe ich ein CBitmap-Objekt per Zeiger übergeben und danach noch das COLORREF-Objekt für die Maske.

Würde es wirklich zu schätzen wissen, wenn ihr mir helfen könntet!!!

Mfg,

Phil

;) :confused:

Originally posted by peicher

Konvertierung des Parameters 1 von 'class CBitmap' in 'class CBit

map *' nicht moeglich".

Die Fehlermeldung sagt doch alles. Die Funktion verlangt einen Zeiger, nicht das Objekt selbst. Setz also ein & vor den Parameter, und es passt.

danke!

dummer fehler...

phil

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.