Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 169
  • Last Modified:

Active movie parameter

In activemovie.h, there is a function:
void SetFileName(LPCTSTR lpszNewValue);

What is the parameter ?
How to exec it?
Can give me an example if the wav file is
a.wav in current dir.
0
nba
Asked:
nba
  • 2
1 Solution
 
galkinCommented:
This property is movie file name, for instance full path to .avi file to be [played by active movie. To play files with ActiveMovie first call SetFileName, add "OpenComplete" event handler andd from this handler call activeMovie method Run to play movie file.
0
 
nbaAuthor Commented:
Can you give me a code as example ?
0
 
nbaAuthor Commented:
After trt and error
I run the following code but, it still find some error when exec

void CAPhoneDlg::OnPlay()
{
      // TODO: Add your control notification handler code here
      m_movie.AboutBox();
      BOOL AStart=m_movie.GetAutoStart();
      CString filename=m_movie.GetFileName();
      m_movie.SetFileName(filename);
      m_movie.SetAutoStart(AStart);      
}


Error: Property cannot be set at run time.
What problem?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now