Hi,
I have this code in a dragdrop routine for a listview to get the
duration of an mp3, where fPath is the path to the file that gets
dropped
Dim fname As String = Chr(34) + Trim(fPath) + Chr(34)
mciSendString(" open " & fname & " alias song", 0, 0, 0)
Dim totalTime As String = Space(128)
mciSendString(" status song length", totalTime, 128, 0&)
.Duration = totalTime
mciSendString(" close " & fname & " alias song", 0, 0, 0)
totalTime = Nothing
the code seems to work for the first mp3 that gets dropped, but each
file after that returns the same duration of the first. Can someone
explain what is not right in that code, and how to change it so that it
works?
thanks
kevin
__________ 0 1428 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jeroen van Vliet |
last post by:
I made a program where wav files will be played from the database, with the
full path.LIKE
i = mciSendstring(open d:\sound.wav type waveaudio",0&,0,0)
i = mciSendstring(play d:\sound.wav ",0&,0,0)
This program will be written on a cdrom, in this case ithe cdrom volume is
D: , but on other
systems its not. How do i let the program choose the right volume?
|
by: chichi |
last post by:
Hi there!
I was wondering if somebody could tell me how to edit the following
ASP code so that the text within the tables appears as Font Color
"00FF00". Right now it is appearing in BLACK and since I want the
background to be black, it kind of poses a problem. :0 Also, if
possible, could you tell me how to change the color of the spaces
inside the table?
Thanks in advance!
Chichi
HERE IS THE CODE:
|
by: Piotr Sawuk |
last post by:
I'm a newbie in the world of c++, and I am used to learn a programming
language simply by programming. Unfortunately I where unable to find
any useful helpfile for this language, in which such basic things as
"class", "operator ::", or even my compiler's error-messages would
get explained in a quick-reference kind of way (as turbo pascal did
with the pascal-language). Therefore I was forced to read some books
and tutorials. However, I'm...
|
by: Dennis |
last post by:
I am trying to use the Notify Flag to send a message when a song is finished
playing. I got it to work by setting up a dummy window and overriding it's
WndProc procedure then raising an event in my application. This work great
until I open a new window then the Notify message doesn't seem to trigger the
WinProc procedure in my dummy window. I guess it's because another window
has the focus...is there any other way I can intercept this...
|
by: Mark Denardo |
last post by:
Does anyone have any good VB.NET example code that shows how to use the
NOTIFY option using the mciSendString API and then handle the return value.
The only examples I can find show the VB way using <Form>.hWnd
My program basically needs to start a media file and then be informed when
it has finished. Right now I have to set up a polling thread to check the
status of the playing media file, which works, but causes other parts of my...
| |
by: =?Utf-8?B?Q8Opc2Fy?= |
last post by:
Could anyone tell me what am i doing bad?
When i use the "MciSendString" always returns a big number instead 0 : What
it says that there is an error, and so don't play the sound.
Then direction of the sound .wav it's ok
I must not use any .ocx.
Could anyone compile it and tell me what it's wrong?
|
by: janakivenk |
last post by:
Hello,
I am running Oracle 10g R2 in our office. I created the following procedure. It is suppose to access an xml file ( family.xml). The procedure is compiled and when I try to run it, i get the following error.
SQL> execute domsample('c:\','song.xml','error.txt')
BEGIN domsample('c:\','song.xml','error.txt
*
ERROR at line 1:
ORA-31001: Invalid resource handle or path
|
by: rajesh619 |
last post by:
I'm new to programming. I have created a servlet which retrieves values from the database after a value is put into the HTML page to which it is attached. But during compilation, it shows two errors. Please help me in solving this error.
import java.io.*;
import java.util.Enumeration;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
import java.net.*;
|
by: bajunaid |
last post by:
Hi..
I'm trying to use mciSendString to play MP3 files and record WAV using mciSendString..
I did it successfully in a C# windowsApplicaton..
But when I move the same cod to my ASP file.. It just doesn't work..
I am using VS2005.. and I dont know what is the problem..
I have no errors,, it just doesn't work..
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |