Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 1998-10-07
1
Medium Priority
?
182 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
[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
1 Comment
 
LVL 3

Accepted Solution

by:
TheAnswerMan earned 100 total points
ID: 1438763
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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

618 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