I made a function that has a void pointer as a parameter. I don't think I did it right (I've never made a function with a void pointer before). It always returns 0, no matter what. Here is my code:
PS: There are more cases in the actual function, I just copied and pasted one.Code:unsigned int BTFImage::GetData(unsigned char SetFlag, void* dest) { switch (SetFlag) { case BTF_WIDTH: dest = &width; return height; default: return 0; } }