I'm geting the error messege "Video Studio cannot start debugging because the debug target 'C:\\documents and settings\name\local setings\application data\temporary projects\ConsoleApplication1\bin\debug\consoleapplication1.exe is missing. Please build the project and retry or set the outpath and assembly name properties appropiately to point at the direct location for the target assembly." when i try to run a simple hello world program. How do I fix this

Error .exe is missing question
AlexYe
Anil15
Error 1 Syntax error. C:\Documents and Settings\name\Local Settings\Application Data\Temporary Projects\ConsoleApplication1\Module1.vb 8 1 ConsoleApplication1
Error 2 'If', 'ElseIf', 'Else', 'End If', or 'Const' expected. C:\Documents and Settings\name\Local Settings\Application Data\Temporary Projects\ConsoleApplication1\Module1.vb 10 2 ConsoleApplication1
Error 3 Declaration expected. C:\Documents and Settings\name\Local Settings\Application Data\Temporary Projects\ConsoleApplication1\Module1.vb 12 1 ConsoleApplication1
Error 4 Syntax error. C:\Documents and Settings\name\Local Settings\Application Data\Temporary Projects\ConsoleApplication1\Module1.vb 13 1 ConsoleApplication1
Error 5 Declaration expected. C:\Documents and Settings\name\Local Settings\Application Data\Temporary Projects\ConsoleApplication1\Module1.vb 14 2 ConsoleApplication1
Error 6 Statement cannot appear outside of a method body. C:\Documents and Settings\name\Local Settings\Application Data\Temporary Projects\ConsoleApplication1\Module1.vb 15 2 ConsoleApplication1
Error 7 Syntax error. C:\Documents and Settings\name\Local Settings\Application Data\Temporary Projects\ConsoleApplication1\Module1.vb 16 1 ConsoleApplication1
yea i dont know anything about compilers... im reading a c book but i think most of them dont say anything about using compilers
Webdiyer
Well, that's the problem. If you do a build, you'll get an exe. If your build fails, you won't have an exe. To check, go to the path it's looking at, but if you hit CTRL-B and get errors, you need to give those to end up with an exe you can debug.
Jonathan Kotthoff
yaron nahari
Evertone
The editor actually compiles as you write the code or at least it's doing syntax checking.
You have systax errors. For each error, in the error list click on it and that should move the editor to the point in your source code where the error is and you can fix it.
wurriedbunny
im reading a c book but i think most of them dont say anything about using compilers
It's pretty much assumed, I guess, that you can't do a thing about a language without a compiler. In this case, you're reading a book about C, but you're using VB Express. VB and C are totally different languages. Nothing you're typing out of that book can help. You should download C++ Express instead, or buy a book on VB.
I would suggest that VB is easier to learn, I'd stick with it and buy the right book, if I were you.
abhi jain
Does the exe exist at all Does it exist at that location Have you done a successful build
tennisguy
reesthil
OK - so you're learning C++, not C, and he gives a link to the C++ Express edition. I assume he provided the book If it's on C and not C++, then you're learning C, which is different to C++, although most C will work in C++, C++ brings a lot to the party as well.
casaubon
I'm sorry, but I can guarentee that he did not say that. There's nothing wrong with you making a mistake while you're learning, but no professor would make the same error. If your book is on C, and not C++ or C#, then it's NOT a beginners language, nor is it a language worth learning for most people in the 21st century, IMHO. If it's C++, it's still harder than VB or C#, but more useful, again, IMO. VB and C# are both Microsoft langauges, C# is easier than C++, but you still need a C# compiler if your book is in C#. If you want to use a VB.NET compiler, you need VB.NET. If you were to buy the full Visual Studio, you'd get all four compilers, and you could choose the language you wanted to use ( actually, it does not support C projects directly, but you can use it for C ). Perhaps this is what your professor meant.
PhillipM
It can't JUST say that. What errors are you getting There's a tab on the bottom left, and it has three buttons on the top, 'errors', 'warnings' and another one. If you click on them, they toggle in the view. Perhaps you've clicked to turn them off Also, in the build tab, the errors will be listed as part of the build process.
Jay Shrestha
TareyWolf
OK, no worries. First of all, can I say that at this stage you should buy a book The help you get online may be great, but it's not structured, and you need to wait for it to come back to you. And it's not always going to be correct. Buy a book on your chosen language, and work through it, it will give you a good grounding to teach yourself further, and to discern the answers to the questions you ask, as well as helping you find what to ask.
When you write code, you end up with a bunch of text files. When you start to debug, the IDE should first try to turn those into an executable file. This is a build. You can also choose 'build' from the menu, or press CTRL-B. When you do this, the compiler will attempt to make this file, but if your code has errors, it will instead show you a list of things that need fixing. Note, just because it compiles doesn't mean it will do what you want, only that it will do *something*, or at least that the compiler could work out what you asked it to do ( if you asked for the right thing is another problem, that's what the debugger is for, and the reason you'd start a debug session ).,
Pressing F9 sets a 'breakpoint' in your code. This shows in the IDE as a dot in the left. This means when you press F5 to debug, the IDE will run your program, but stop at this line, so you can watch what is going on, see what your variable values are ,etc.