[TEX]Hi everyone!!!

I'm new to programming in vb.net and have just created my first game. I need help in being able to use midi files in it but having trouble because I always get an exception error of some sort. Is there something that needs to be done in my IDE? Or is there a specific library I need to import.

What I am using is [/TEX]

imports microsoft.directx
imports microsoft directx.audiovideoplayback

dim midfile as audio= new Audio("path to filename")
midfile.play()
end sub

[TEX]The regular methods don't seem to work. What am I doing wrong?[/TEX]

Recommended Answers

All 3 Replies

Was this post serious?

tryusingspacesbetweenyourwordssoweknowwhatyouaretalkingabout.explainyourprobleminmoredetail.

Why are you using html to write a post? lol. If you hold your mouse over his first line the tooltip shows all of what he typed, its not all showing up.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.