   How would I go about creating a virus? If you read the post it isn't as bad as it see
  Ok when i say virus you probably think computer crippling disease. but the one i want to make is going to be used as a laugh and no harm is going to be done.Ok the idea i was thinking of was called The Rick Roll ( yeah i know but my mates hate him)and i thought it would be cool to annoy them with it.i want it to. Play 'Never Gonna Give You Up' on a loop.. Set the volume to a constant 50 and you can't turn it down.. When headphones are plugged in it still plays from their speakers.. You can't turn it of, except for task manager ( i am not that mean)Would it play though Windows Media player, also it would be some sort of annoying background activity (meaning they can still use their computer like normal). I am using C++ at the moment, but most viruses are made in notepad ain't they.   
  depending on what you want to do  there are limitations on what you are asking especially now with windows 7 that has self contained audio levels per application ;  You are obviously on the wrong website. This website is all about game development. Besides, you didn't ask anything in your post. I'll just give you a simple piece of advice: don't create a virus - dispite your seemingly harmless intention.   ;  A) No.B) No.C) NO!Even relatively "harmless" viruses that spread widely can end up costing a lot of money (distributed over many people in terms of time and effort removing it and regaining control of their system, bringing it in to tech shops for repair etc.)Beyond potential legal ramifications this is in NO way a good use of your time and is not going to earn you any friends.   ;  This wouldn't be a "virus" anyway. A virus is code that replicates itself in order to spread. You are just talking about building a malicious program. It requires no specific knowledge to do so. For an experienced programmer this is a ~2 hour project.Also: Never do this. No, C++ is a programming language, notepad is a program. Writing code in notepad means nothing until it is compiled/distributed/injected.And no, notepad does not have a built in compiler.   ;  There seems to be a distinct lack of understanding what a computer virus is these days. Viruses are self replicating programs, designed to spread from one machine to another. What you are after is a variation of a rootkit program. They are difficult to write, as you need intimate knowledge of the operating system. In all seriousness, I would not bother, unless you want to learn or enjoy hacking.I'd rather get one of these and chuck it into the machine's USB ports. http://www.instructables.com/id/The-Trickster-USB-Computer-Prank/Make it more compact though.   ;  I encourage you to use notepad to write all of your viruses.  Notepad accepts your ideas.  Notepad embraces you. Notepad can give you the love that you're missing.  C++ really can't. C++ takes your ideas and does things with them.  Notepad quietly listens. C++ tries to interpret your statements and executes them.  Notepad saves your statements and shows them to you later.C++ has control structures and functions, and OOP and COM.  Notepad has fonts, and word wrap.  C++ has syntax, Notepad is freeform.  Notepad is freedom.  Notepad is expression.It sounds like Notepad is what you need.   ;  Nope.   