Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Active movie parameter

Posted on 1998-01-31
3
Medium Priority
?
163 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
galkin earned 60 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

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

705 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