Results 1 to 4 of 4

Thread: Console.WriteLine("pls print") doesn't work...

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2003
    Posts
    436

    Console.WriteLine("pls print") doesn't work...

    I am using VS 2002.

    console.writeline doesn't popup my black window to display...
    anything wrong with my envirnoment...

    pls advise.
    thanks

  2. #2
    Addicted Member
    Join Date
    Nov 2003
    Location
    India
    Posts
    227
    Hi,

    this is not that All Console.WriteLine should popup a console window. While opening your project you need to open it as Windows Console Application. Or else you have to compile your vb file using
    >vbc x.vb
    in dosprompt as an ordinar Exe.

    While opening your project if you choose your project as Windows Application then the VS2000 will compile your vb file as winexe not as exe which will not provide you a popup console window.

    Try to open a new Console Application project in your VS2000 and try to test your Console.Writeline("Hi").

    Good Luck.

    -Jai.
    See you,
    -Jai
    [Friends Never Say Good Bye]

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2003
    Posts
    436

    THANK YOU...so if you want to develop an application

    that runs in dos command prompt then during the development of the app, we should open it as a 'console application' rather than a 'windows application'.

    am I correct....

    nath

  4. #4
    Addicted Member
    Join Date
    Nov 2003
    Location
    India
    Posts
    227
    No again you are wrong. There are lot of ways to open a console. One simple way is this. While considering about .NET don't ever think about the IDE. The IDE uses only to develop the application so easily. The IDE hides lot of things behind you. Think that when you are writing your code in notepad.

    How will you compile & execute your code. If you try to find the answer, you will know the entire .NET architecture. Before going with the IDE try to use the notepad atleast for one week for developing simple tasks.

    It will be really interesting to know the facts what is running behind the IDE.

    -Jai
    See you,
    -Jai
    [Friends Never Say Good Bye]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width