Plz tell step step procedure to play music in my Microsoft visual studio 2005 for my opengl projects

Hi

Assuming you are using VB.NET as you have posted this in the Visual Basic old forum then you can use the My.Computer.Audio object to play sound.

HTH

But i am using Microsoft visual studio 2005 for my mini projects

But i am using Microsoft visual studio 2005 for my mini projects

The My.Computer.... was introduced in Visual Studio 2005 (or more specifically .NET 2.0) so it will work in your VS 2005 projects.

U have any alternative playsound() to play music in my code

What other alternatives are you looking for? What format of sound files do you want to play?

Is there some limitation to the basic solution I pointed you to?

I am using playsound(),and sndplaysound(), and music in a .wav format still some error and also if not error its i not working. Where should place that music.wav file

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.