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.

CAnimateCtrl

Empfohlene Antworten

Veröffentlicht

Hallo Leute,

ich habe folgendes Probem:

Ich will ein Avi ( ohne Codec und ohne Ton) in einem Dialogfenster abspielen!

Das ganze mit Hilfe von MFC Klassen - in meinem Fall CAnimateCtrl!

Allerdings habe ich Probleme das Avi abzuspielen!

Meine Membervariable heisst: m_avi

wenn ich schreibe: m_avi.Play;

dann sagt mir VC++ irgendwas mit fehlenden Parametern ?!?! :(

Kann mir jemand helfen ??

Wäre super nett

MfG McMaiers

Hi,

Nein hab kein VB programmiert!

Die Variable ist so deklariert:

CAnimateCtrl m_avi;

und so verwendet:

void CMpDlg::OnPlay()

{

m_video.Play;

}

aber so hauts ned hin :(

Der Fehler heisst:

Dem Funktionsaufruf fehlt die Argumentenliste

MfG

Original geschrieben von McMaiers

Hi,

Nvoid CMpDlg::OnPlay()

{

m_video.Play;

}

Ja, wie ich schon gesagt habe:

Play ist (nehm ich mal schwer an) eine Methode, von CAnimateCtrl.

Eine Methode wird mit MethodenName(); aufgerufen.

Das was du aufrufst, ohne die (), wär ein Attribut.

Da du mit VC arbeitest, mach doch einfach mal ne ( hinter das Play, dann sollte das Visual Studio eigentlich gleich so nen kleinen Tooltip bringen, was da für Argumente reingehören.

Jup, hab nochmal nachgeschaut. Genau so stehts in der MSDN:

Call this function to play an AVI clip in an animation control.

BOOL Play(

UINT nFrom,

UINT nTo,

UINT nRep

);

Parameters

nFrom

Zero-based index of the frame where playing begins. Value must be less than 65,536. A value of 0 means begin with the first frame in the AVI clip.

nTo

Zero-based index of the frame where playing ends. Value must be less than 65,536. A value of – 1 means end with the last frame in the AVI clip.

nRep

Number of times to replay the AVI clip. A value of – 1 means replay the file indefinitely.

Return Value

Nonzero if successful; otherwise zero.

Remarks

The animation control will play the clip in the background while your thread continues executing. If the animation control has ACS_TRANSPARENT style, the AVI clip will be played using a transparent background rather than the background color specified in the animation clip.

hi mcmaiers

du bist im falschen forum

du müßtest in: " C++: Compiler, IDEs, APIs " schreiben

bei CAnimateCtrl mußt du erst mit der Methode Open festlegen welches Avi er abspielen soll:

Probiern wirs einfach mal:

CAnimateCtrl m_avi;

m_avi.Open("C:\\test.avi");

m_avi.Play(0,-1,1);

müßte funktionieren

keine garantie habs jetzt nicht getestet

Nen schönen tag noch!

MFG SwordMaster

Edit: war ich wiedermal zu langsam seh ich grad :(

Ja stimmt, VC hat geholfen!

Blöderweise hab ich immer noch nen Fehler! :(

Evtl sagt dir das was ?

void CMpDlg::CMpDlg()

{

//{{AFX_DATA_INIT(CAnimateCtrlPage)

m_offnen = _T("");

m_zentriert= TRUE;

m_transparent = FALSE;

m_autoplay = FALSE;

//}}AFX_DATA_INIT

m_psp.dwFlags &= ~PSP_HASHELP; // Lose the Help button

}

Fehlermeldungen:

1. CMpDlg::CMpDlg' : Ergebnistyp fuer Konstruktoren nicht erlaubt

2. CMpDlg::CMpDlg' : Überladene Member-Funktion 'void (void)' nicht in 'CMpDlg' gefunden

HILFE! :(

Sorry, damit kann ich auch nicht viel anfangen, ohne das ganze Programm gesehen zu haben.

Hört sich aber irgendwie an, als ob deine Klassendefinitionen nicht zur Implementierung passen würden.

Aber diesen Teil vom Code, sollte doch eigentlich der Classwizzard erstellen.

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.