Results 1 to 7 of 7

Thread: VB Advanced Question

  1. #1

    Thread Starter
    Frenzied Member Microbasic's Avatar
    Join Date
    Mar 2001
    Posts
    1,402

    VB Advanced Question

    Does anyone know what are pipes, what are they used for, and why would they be used?


    MicroBasic
    Dragon Shadow Trainer

    There is no good or evil in the world...only programmers and fools .

  2. #2
    Frenzied Member Shawn N's Avatar
    Join Date
    Dec 2001
    Location
    Houston
    Posts
    1,631
    Pipes give processes a way to communicate.

  3. #3
    PowerPoster
    Join Date
    Feb 2001
    Location
    Crossroads
    Posts
    3,046
    unless your talking about plumbing I have no idea ;D

    msft has a good section though:

    http://msdn.microsoft.com/library/de...sing_pipes.asp

  4. #4
    PowerPoster
    Join Date
    Feb 2001
    Location
    Crossroads
    Posts
    3,046
    check out the example on allapi ... kinda cool

    http://www.allapi.net/apilist/CreatePipe.shtml

  5. #5

    Thread Starter
    Frenzied Member Microbasic's Avatar
    Join Date
    Mar 2001
    Posts
    1,402
    Originally posted by Shawn N
    Pipes give processes a way to communicate.
    OK, but do you know how pipes work?


    MicroBasic
    Dragon Shadow Trainer

    There is no good or evil in the world...only programmers and fools .

  6. #6
    Frenzied Member Shawn N's Avatar
    Join Date
    Dec 2001
    Location
    Houston
    Posts
    1,631
    Originally posted by Microbasic
    OK, but do you know how pipes work?
    Much like files. What are you getting at?

  7. #7
    Fanatic Member Mr.No's Avatar
    Join Date
    Sep 2002
    Location
    Mauritius
    Posts
    651
    OK this is what I understand about pipes that I learnt from Unix. You use a pipe when you want the output of one program to become the input of another, e.g

    Code:
    cat infile.txt | awk '{print $1'}
    The output of cat usually goes to the screen but in the above case it goes to the awk command which uses it as input, prints the first column of each record. The nice thing about pipes in Unix is that it avoids you from creating temporary files to store intermediate results and most interesting of all you can combine many small command line utilities using pipes to produce great tools and functionalities. Of course the Unix commands do not make any assumptions about their inputs, for example they don't expect all their inputs to come from the keyboard, in fact all inputs (keyboards, mouse, ouput from a file) are considered as devices.

    Well thats an explanation from the Unix world, I don't know if it answers your question.
    Using VB.NET 2003/.NET 1.1/C# 2.0
    http://del.icio.us/rajoo
    Blow your mind, smoke gunpowder
    Ashes to ashes, dust to dust
    If God won't have you, the devil will. - Author unknown
    Don't follow me, I'm lost too ...

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