Fog Creek Software
Discussion Board

Welcome! and rules

Joel on Software

I cant run the HelloWorld tutorial!!!

I am having trouble running the HelloWorld tutorial.

In the directory...

C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Samples\Tutorials\PlatformIntroduction\HelloWorld\CS

...there are two files HelloWorldCS.cs and build.bat

I execute the batch file by clicking on it (Isn't that the right thing to do?) The black console window flashes up for half a second and then disappears.

The documentation says...

"Executing the sample batch file containing this command line yields the following:

C:\...\HelloWorld\vb> vbc.exe /t:exe /debug+ /optionstrict+ /out:.\HelloVB.exe HelloVB.vb
Microsoft (R) Visual Basic Compiler Version ...
for Microsoft (R) .NET CLR ...
Copyright (C) Microsoft Corp 2001. All rights reserved."

And goes on to say...

"Executing the resulting executable file produces the following:
Hello World using Visual Basic!"

But WHERE is the resulting executable file? I do not see it. Should it appear in the same directory? What am I doing wrong?

Monday, October 4, 2004

Try running the batch file from the command line, see what errors it might give that you're missing.

GD (
Monday, October 4, 2004

There's also some confusion about in your post whether you should be in the \CS subdirctory or in the \vb subdirectory.

Monday, October 4, 2004

You said your code is compiling fine and the command window flashes.
I think all you have to do is add the following line of code to see ur output.


//It waits for user input .So u can see the output

Tuesday, October 5, 2004

*  Recent Topics

*  Fog Creek Home