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

This question has already been answered. Start a new discussion instead.