473,394 Members | 1,703 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

mmsystem

Does anyone know why I would be getting a "File not found: mmsystem"?

I've tried this:
Declare Function sndPlaySound Lib "mmsystem" (ByVal lpszSoundName As
String, ByVal wFlags As Integer) As Integer

I can see 'mmsystem.dll' in my "c:\windows\system" directory

I really want to use the 'mmsystem' library because of it's high level
Timing and I'd rather not go the WINMM direction as it doesn't have other
great functions I want to use.

Thanks in advance.
Dominic
Jan 29 '08 #1
6 3951
On Jan 28, 10:02*pm, "Dominic Vella" <dominic.ve...@optusnet.com.au>
wrote:
Does anyone know why I would be getting a "File not found: mmsystem"?

I've tried this:
*Declare Function sndPlaySound Lib "mmsystem" (ByVal lpszSoundName As
String, ByVal wFlags As Integer) As Integer

I can see 'mmsystem.dll' in my "c:\windows\system" directory

I really want to use the 'mmsystem' library because of it's high level
Timing and I'd rather not go the WINMM direction as it doesn't have other
great functions I want to use.

Thanks in advance.

Dominic
This is a shot in the dark.

Steven Roman, in his book "Win32 API Programming With Visual
Basic" (ISBN: 1-56592-631-5, maybe also 9781565926318) states:

For Win32 API calls, this is usually (but not always) one of the "big
three":

KERNEL32.DLL
USER32.DLL
GDI32.DLL

For these three DLLs, you can omit the extension .DLL in <libname>, as
we did ...

James A. Fortune
CD********@FortuneJames.com
Jan 29 '08 #2

"Dominic Vella" <do***********@optusnet.com.auschreef in bericht news:47***********************@news.optusnet.com.a u...
Does anyone know why I would be getting a "File not found: mmsystem"?

I've tried this:
Declare Function sndPlaySound Lib "mmsystem" (ByVal lpszSoundName As
String, ByVal wFlags As Integer) As Integer

I can see 'mmsystem.dll' in my "c:\windows\system" directory

I really want to use the 'mmsystem' library because of it's high level
Timing and I'd rather not go the WINMM direction as it doesn't have other
great functions I want to use.

Thanks in advance.
Dominic
This works for me to play files:

Private Declare Function apiPlaySound Lib "Winmm.dll" Alias "sndPlaySoundA" _
(ByVal lpszSoundName As String, ByVal uFlags As Long) As Long

Function csvPlayWave(ByVal FileName As String, ByVal How As Integer) As Integer
csvPlayWave = apiPlaySound(Trim(FileName), How)
end Function

'Example: ReturnCode =csvPlayWave("c:\windows\media\tada.wav", 1)

Arno R
Jan 29 '08 #3
As I mentioned, I was trying to avoid the WinMM. Basically, I'm trying to
synchronise playback (particularly MIDI) with other activity. MMSystem is
a lower level platform, of which WinMM also uses (supposedly).

I need MMSystem for such functions as MidiInOpen, MidiInStart,
MidiInAddBuffer, PutMidiOut etc.

Dom
"Arno R" <ar****************@planet.nlwrote in message
news:47***********************@text.nova.planet.nl ...

"Dominic Vella" <do***********@optusnet.com.auschreef in bericht
news:47***********************@news.optusnet.com.a u...
Does anyone know why I would be getting a "File not found: mmsystem"?

I've tried this:
Declare Function sndPlaySound Lib "mmsystem" (ByVal lpszSoundName As
String, ByVal wFlags As Integer) As Integer

I can see 'mmsystem.dll' in my "c:\windows\system" directory

I really want to use the 'mmsystem' library because of it's high level
Timing and I'd rather not go the WINMM direction as it doesn't have other
great functions I want to use.

Thanks in advance.
Dominic
This works for me to play files:

Private Declare Function apiPlaySound Lib "Winmm.dll" Alias "sndPlaySoundA"
_
(ByVal lpszSoundName As String, ByVal uFlags As Long) As Long

Function csvPlayWave(ByVal FileName As String, ByVal How As Integer) As
Integer
csvPlayWave = apiPlaySound(Trim(FileName), How)
end Function

'Example: ReturnCode =csvPlayWave("c:\windows\media\tada.wav", 1)

Arno R
Jan 29 '08 #4

"Dominic Vella" <do***********@optusnet.com.auschreef in bericht news:47***********************@news.optusnet.com.a u...
As I mentioned, I was trying to avoid the WinMM.
Sorry, I overlooked that one

Arno R
Jan 29 '08 #5
On Tue, 29 Jan 2008 14:02:00 +1100, "Dominic Vella"
<do***********@optusnet.com.auwrote:

I have the file on my system as well, both in system and system32, but
both say "No PE signature found. This file is not a valid Win32
module" when I try to inspect them. I suspect they are 16-bit legacy
components. You'd need to find more modern replacements.

-Tom.
>Does anyone know why I would be getting a "File not found: mmsystem"?

I've tried this:
Declare Function sndPlaySound Lib "mmsystem" (ByVal lpszSoundName As
String, ByVal wFlags As Integer) As Integer

I can see 'mmsystem.dll' in my "c:\windows\system" directory

I really want to use the 'mmsystem' library because of it's high level
Timing and I'd rather not go the WINMM direction as it doesn't have other
great functions I want to use.

Thanks in advance.
Dominic
Jan 29 '08 #6

Yes, MMSystem is 16-bit. To my understanding it was still useable as when
developing Win95 they rushed and allowed some 16-bit dll's. The WinMM dll
typically Thunked (a techo name for mutating) the 16-bit MMSystem dll.

Now it seems, I'm way behind the times, WinMM has been fixed and fortunately
uses the same library calls. No more thunking!! Yippee.
Dominic

"Tom van Stiphout" <no*************@cox.netwrote in message
news:1t********************************@4ax.com...
On Tue, 29 Jan 2008 14:02:00 +1100, "Dominic Vella"
<do***********@optusnet.com.auwrote:

I have the file on my system as well, both in system and system32, but
both say "No PE signature found. This file is not a valid Win32
module" when I try to inspect them. I suspect they are 16-bit legacy
components. You'd need to find more modern replacements.

-Tom.
>>Does anyone know why I would be getting a "File not found: mmsystem"?

I've tried this:
Declare Function sndPlaySound Lib "mmsystem" (ByVal lpszSoundName As
String, ByVal wFlags As Integer) As Integer

I can see 'mmsystem.dll' in my "c:\windows\system" directory

I really want to use the 'mmsystem' library because of it's high level
Timing and I'd rather not go the WINMM direction as it doesn't have other
great functions I want to use.

Thanks in advance.
Dominic

Jan 30 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: flupke | last post by:
Hi, i am in search of a cddb module for Python on windows. I stumbled upon http://sourceforge.net/projects/cddb-py but couldn't use it since the mci.dll is compiled against Python2.0. So i'm...
1
by: Ben Bateman | last post by:
I am tyring to write a small menu program that will display the lyrics of a song, and then play the song. I was told that you have to convert the mp3 to wav, did that. The 2 function calls...
2
by: Ángel Cabrera | last post by:
I'm using Visual Studio .NET 2003. I get a "Form1.h(242): error C2065: 'PlaySound' : undeclared identifier" error all the time, I've been looking in MSDN for a couple of hours with no luck, no...
5
by: Stephan Wörmke | last post by:
Hi! In one of our experiments we are using piezo electric transducers to move a stage. So far a feedback loop was implemented using the real-time system from venturcom. We now would like to use...
9
by: Daniel Moree | last post by:
I'm using MS VC++ 6.0 I'm working on a big project. I've currently have several files for this project. Here's the problem. I have one header file phead.h I have two code files main.cpp and...
3
by: MLH | last post by:
I make API calls to the sndPlaySound function, something like this... XX% = sndPlaySound(msound, MyParm) Several predefined system constants (or API intrinsic constants) have been recommended...
5
by: MLH | last post by:
I have a line of code that works when called from a procedure in Access 2.0 form... PlaySound("C:\cr\help\Help0018.wav", 0) I imported what I thought was needed into A97. However, running it...
4
by: Dennis | last post by:
Where can I find the values for Windows Messages like MM_MCINOTIFY, MCI_NOTIFY_ABORTED, etc. I have looked and searched Google but can't seem to find a complete listing. -- Dennis in Houston
2
by: BruceWho | last post by:
I downloaded boost1.35.0 and built it with following command: bjam --toolset=msvc-7.1 --variant=release --threading=multi -- link=shared --with-system stage and it failed to compile, error...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.