Solved

Active movie parameter

Posted on 1998-01-31
3
134 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How to know only "File created" with EventLog 3 29
sum67 challenge 35 89
fizzArray2 challenge 1 61
wordcount challenge 11 78
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now