Solved

I got a few questions-Avis, Wav's, and File I/O

Posted on 1998-10-07
1
175 Views
Last Modified: 2010-04-30
1-How do i play an .avi file automatically?  When i use an OLE to put the avi in, it requires the user to double click on it, then click the play button.  I want it to automatically play, then open another form when it is finished.
2-How do you play .wav files in the background of a form.(As in the program is still running while the sound plays)
3-How in the heck do you let somone save multiple values into a file name that they decide with any extention(.txt, .wow, .dat are examples) that I want.  I know that its simple, but I am a simple freshman in High School and I need to know simple things.
0
Comment
Question by:Peanuthead
1 Comment
 
LVL 3

Accepted Solution

by:
TheAnswerMan earned 50 total points
Comment Utility
TO PLAY MUSIC>>PUT THIS WITH YOUR GLOBALS>>>
Public Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
THEN>>> when you want to play the sound...
call sndPlaySound("C:\PathName.wav",0)

TO PLAY AVI>> USE THE ActiveMovie Control and set it to autoplay.

To Allow them select extenstions.. use the CommonDialog Control. and do something like this,,,
  On Error GoTo ErrHappened
  CommonDialog1.Flags = cdlOFNHideReadOnly  
  CommonDialog1.Filter = "All Files (*.*)|*.*|Wow Files" & _
  "(*.wow)|*.wow|Batch Files (*.bat)|*.bat"  
  CommonDialog1.ShowSave  
Exit Sub  
ErrHandler:
'go here if the guy hit cancel
End Sub

0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

772 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

11 Experts available now in Live!

Get 1:1 Help Now