Solved

Active movie parameter

Posted on 1998-01-31
3
144 Views
Last Modified: 2013-11-19
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
Comment
Question by:nba
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
galkin earned 30 total points
ID: 1315305
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
 

Author Comment

by:nba
ID: 1315306
Can you give me a code as example ?
0
 

Author Comment

by:nba
ID: 1315307
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Generic progress indicator 6 117
Named range not carried over 10 65
centeredAverage challenge 8 181
fizzArray2 challenge 1 91
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question