Uses for Void Pointers

This is a discussion on Uses for Void Pointers within the C++ Programming forums, part of the General Programming Boards category; Can someone please refresh my memory as to the uses of a void pointer? Eg. Code: void *vPtr; ...I think ...

  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    37

    Uses for Void Pointers

    Can someone please refresh my memory as to the uses of a void pointer?

    Eg.
    Code:
     void *vPtr;
    ...I think it had something to do with creating pointers to functions, or typecasting, or something, but I just can't remember!

  2. #2
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    this seems to be coming up a lot. It's just a generic pointer. It can be used to hold a pointer to anything.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  3. #3
    Just a Member ammar's Avatar
    Join Date
    Jun 2002
    Posts
    953
    Just search this forum for "void pointer" and you will find what you are looking for.
    none...

  4. #4
    Registered User
    Join Date
    May 2003
    Posts
    37
    Tried it. Read about 4 pages worth of stuff...nothing. Figured it'd be quicker to ask. I looked it up in my reference book, but it's not there....

    Ah, point to anything eh? Hmm...what use would this be? ....something to do with typecasting?
    Last edited by Ashes999; 07-25-2003 at 04:31 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. MergeSort with array of pointers
    By lionheart in forum C Programming
    Replies: 18
    Last Post: 08-01-2008, 11:23 AM
  2. Using pointers to pointers
    By steve1_rm in forum C Programming
    Replies: 18
    Last Post: 05-29-2008, 06:59 AM
  3. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  4. Staticly Bound Member Function Pointers
    By Polymorphic OOP in forum C++ Programming
    Replies: 29
    Last Post: 11-28-2002, 01:18 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21