News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

winmm.asm?

Started by drifter, February 22, 2013, 02:46:10 PM

Previous topic - Next topic

drifter

I was looking at some of the great examples included with the MASM32 package - in particular the Bill Cravener playmidi folder.  The multimedia application clearly references winmm.inc and winmm.lib, but I was unable to find a winmm.asm file.  Looking in the LIB fold it appears the winmm.lib was created at the same time everything else was assembled - but what was it built from?  Sorry if this is an obvious question, it's been awhile since I've done any programming and I never did learn windows.

x64Core

Quote from: drifter on February 22, 2013, 02:46:10 PM
I was looking at some of the great examples included with the MASM32 package - in particular the Bill Cravener playmidi folder.  The multimedia application clearly references winmm.inc and winmm.lib, but I was unable to find a winmm.asm file.  Looking in the LIB fold it appears the winmm.lib was created at the same time everything else was assembled - but what was it built from?  Sorry if this is an obvious question, it's been awhile since I've done any programming and I never did learn windows.

winmm.dll is a module created by Microsoft and its used by the programmers, there is no source code for such module.
its just an file which export functions

dedndave

winmm.dll is part of the OS and is probably in your windows\system32 folder
it has several exported functions
if you want to see what all of them are, you can use something like the Dependancy Walker
http://www.dependencywalker.com/

microsoft releases SDK's that have several C-like include files (.H files)
Hutch (and others) have made sets of ASM-usable include files (.INC files), based on those from MS
by using various tools, import libraries can be made that create placeholders for building PE EXE's
that is simplifying it a bit, but it helps to understand well enough to get you going

these import libraries are not contained in the Masm32 installer
rather, they are built when you install the package

Dave, K7NL

drifter

x64Core & dedndave thanks!

I couldn't find exactly where that build happens - but I see it's not a priorty in order to use the functions.  I'm still finding my way around so, I'll get to it eventually.  & Thanks for the link - another interesting tool to play with!

Hopefully, I'll have some code to post in a week or two.

Frederick, KK6PR

dedndave

http://www.masmforum.com/board/index.php?topic=15882.msg131239#msg131239

that is the "old" forum - the attachment to that post is a simple console program

MRHS - very cool   :t
my brother was an op at KH6SP back during the viet nam war
that would be great to log some commercial time   :biggrin:

EDIT: i see, now, that KH6SP is a club station of some sort
back then, they ran crypto from the sub base at Pearl Harbor
on off hours, they used the station for MARS and amateur
they had 2 full Collins S-Lines, including a couple 30S-1's, and a 4 element quad at 100'   :P

drifter

on: February 22, 2013, 07:00:49 PM dedndave wrote:
Quote- the attachment to that post is a simple console program
:eusa_dance:
That's great!  The .wav output from your program seems to work a lot cleaner (let's hope) than the .mid.  For some reason when I hit the play button for the .mid, there's a mysterious delay, or I have to reselect the midi device again to get it to work.  I'll have to check that out more when I get to that point.

As a first step, I'm working on a console program - something that will display a fret grid for guitar chords and scales.  And to make it more difficult/useful, I'd like it to do so for altered tunings, not just the standard EADGBE (every time you change the tuning, the chord charts get scrambled).  Hopefully, I can do it in such a way that it can be adapted fairly easily for other instruments I'm interested in (keyboard, concertina, etc).  At some point, there'll probably be a 'play' function as well.

Yeah MRHS is a great bunch - I worked there from 81 till 97 when the station was sold out from under us.  Fortunately the park service was able to take it over and turn it into a working museum.  I try to get out there as a 'Volunteer' as often as I can - but it's a 2-hour commute (one way).  Before KPH, I was in the Coast Guard at NMC (next door).

dedndave

yah - midi's are a bit strange
i have been trying to learn a little more about it, as time permits
.WAV files are considerably larger, though

what you would probably want is something to play a midi from memory, rather than a file
i would like to learn how to do that for morse software
Heather gave me some code that looks promising, but i haven't had time to play with it