Thread: Casting to pointer to pointer to void

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User Sharke's Avatar
    Join Date
    Jun 2008
    Location
    NYC
    Posts
    303

    Casting to pointer to pointer to void

    The following snippet from a DirectX tutorial I'm reading:

    Code:
    VOID* pVoid;  
    
    v_buffer->Lock(0, 0, (void**)&pVoid, 0);
    I'm a little confused about the (void**) cast. Isn't &pVoid a void** anyway?
    Last edited by Sharke; 05-10-2009 at 12:06 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Data Structure Eror
    By prominababy in forum C Programming
    Replies: 3
    Last Post: 01-06-2009, 09:35 AM
  2. LNK2001 ERROR!!! need help
    By lifeafterdeath in forum C++ Programming
    Replies: 7
    Last Post: 05-27-2008, 05:05 PM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  4. linked list problem
    By kzar in forum C Programming
    Replies: 8
    Last Post: 02-05-2005, 04:16 PM
  5. Quack! It doesn't work! >.<
    By *Michelle* in forum C++ Programming
    Replies: 8
    Last Post: 03-02-2003, 12:26 AM