Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MCI ActiveX drives me nuts
Message
De
08/11/1997 15:28:19
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
MCI ActiveX drives me nuts
Divers
Thread ID:
00059114
Message ID:
00059114
Vues:
82
I'm trying to solve a bit of a mystery with MCI (Multimedia) ActiveX control. Vb.hlp is not of great help when syntax is considered - they assume too many things are known by default. I'm trying to implement a sound recorder on a form - nothing too complicated. It should record a message, store it into a .wav file, copy it to a memo field in some table, and go wait for the next message. I can't get the bloody thing initialized properly. It says I should issue Thisform.Olecontrol1.command with a parameter of "Open", and set Thisform.Olecontrol1.FileName to "something.wav"; since .wav will be recognized, I don't have to fill Thisform.Olecontrol1.object.DeviceType to "WaveAudio". Then it says I'd issue the Thisform.Olecontrol1.command from form.load (I've put it into .init, since the control probably doesn't exist at .load time), and it is supposed to return the DeviceID, which should (automaGically?) be stored into Thisform.Olecontrol1.object.DeviceID (must be automatic, because it's read_only). I've tried Thisform.Olecontrol1.object.command="Open" Thisform.Olecontrol1.object.command="Open WaveAudio" ....and several other combinations, but nevertheless can't get any other DeviceID except 0 and I get error 257: "MMSYSTEM257 Invalid MCI device ID. Use the ID returned when opening the MCI device.", puts the device into "mciModeOpen 524 Device not open." mode and generally drives me nuts. Cann't find the "ID returned when opening" anywhere; besides, I've tried to set it to any number and it remains so. The devicetype remains ""; if I pre-set it in the PEM window, it remains as pre-set. How do I get this DeviceID, or am I opening it wrong way? Anyone? TIA, nDragan

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Répondre
Fil
Voir

Click here to load this message in the networking platform