Results 1 to 9 of 9

Thread: *resolved* pointers....

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Smile *resolved* pointers....

    well as they say VB.NET doesnt have pointers...
    I remember when I used C++ the only time I used pointer was when I was making link lists. I know that it also has a very good use for virus programming... but really what's the advantage of having pointers (C#)? what kind of a program can you write with C# by using pointer that you couldnt write in VB.NET?
    Last edited by MrPolite; Sep 22nd, 2002 at 11:15 PM.
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    I don't think it is a matter of what you can and can't do with them, I believe it is more about speed and flexibility than anything else.

  3. #3
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    hmm what is the advantege and disvantage of pointers?!?

  4. #4
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    One of advantages of using pointers is for returning more than one value from a function call. Since a pointer is changing the value at the memory address, you could pass 4 variables to a function and have all of them changed all at once.
    Dont gain the world and lose your soul

  5. #5

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by DevGrp
    One of advantages of using pointers is for returning more than one value from a function call. Since a pointer is changing the value at the memory address, you could pass 4 variables to a function and have all of them changed all at once.
    that's a refrence I believe I mean pointer as C++ pointers
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  6. #6
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    that's a refrence I believe I mean pointer as C++ pointers
    In VB you just pass ByRef instead of ByVal to get the same effect. Is that what your talking about?

  7. #7

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by hellswraith
    In VB you just pass ByRef instead of ByVal to get the same effect. Is that what your talking about?
    me? no

    POINTERS!!!! the thing that doesnt exist in vb.net.
    I mean what is the point of being able to change a memory address manually?! VIRUSES love to do that, dont they?
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  8. #8
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    The only thing I know is you can speed up your apps with them. When you reference a memory address with a pointer, the compiler goes straight there to get the value. When you reference a variable, the compiler has to check where that value is held in memory then go get it. Very little overhead though. The speed comes in real handy in loops and intensive processes.

    At least that is what I have been told from others.

  9. #9
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    hmmmmmm

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