I would look this up, but honestly I wouldn’t know where to start because I don’t know what it is called. I’ve seen variables passed to functions like this:
myFunction((void**)&variable);
Which confuses the heck out of me cause all of those look familiar to me; I’ve just never seen them put together like that before.
What does it mean? I am a newb so the less jargon, the better, thanks!
It’s a cast to a pointer to a
voidpointer.You see this quite often with functions like
CoCreateInstance()on Windows systems.The cast converts the pointer to an
ISomeInterfacepointer into a pointer to avoidpointer so thatCoCreateInstance()can setifaceptrto a valid value.Since it is a pointer to a
voidpointer, the function can output pointers of any type, depending on the interface ID (such as IID_ISomeInterface).