Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I use winmm.dll in vb2017?

Status
Not open for further replies.

John Alexander

Programmer
Jun 26, 2018
7
US
I can play notes in vb6 with winmm.dll but I don't know how to use the same code in vb2017
 
winmm.dll is neither a COM dll nor a .NET Assembly, it is a Win32 API, so you can't add it directly to a project. You have to either use DLLImport, or declare appropriate function signatures in your code to access the winmm functions you want. The following link has the code you'll need to use either method; scroll down the list on the left side and expand winmm, click on the link for the function you want, and it will take you to a page with the code:


Good luck!

I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top