void-pointers
VC++ Compiler Can't Catch HANDLE and PHANDLE Type Mismatch
I spent a whole day looking for a bug caused by wrongly passing Windows PHANDLE type to a functi开发者_如何学Con expecting HANDLE!!!I was expecting the VC++ 2010 compiler to catch such a simple and ob[详细]
2023-04-12 13:08 分类:问答How do I declare a C++ prototype with a void * pointer so that it can take any pointer type?
I want to create a function prototype in C++ so that there is a void * argument that can take pointers of any type. I know that this is possible in C. Is it possible in C++?[详细]
2023-04-08 20:07 分类:问答C/C++ pointer tricks (saving pointer to int, and translating back)
As title says, I\'m currently doing some small hacks with pointers in C++, but something isn\'t working out here\'s what I got:[详细]
2023-04-06 08:34 分类:问答C++ decode void pointer nicely for Matlab mex
I\'m trying to write a C++ mex function for Matlab that can handle multiple datatypes.Matlab gives me an mxArray*, from which I can retrieve a void* for the data, and an mxClassID telling me the datat[详细]
2023-04-05 14:37 分类:问答Cast 32 bit int to 64 void * pointer without warning
I have a \"generic\" linked link in C that takes void * data to store the data in a Node. insertNode(linkedList * list, void *data);开发者_如何学运维[详细]
2023-04-04 21:16 分类:问答Mechanism to call functions with different number and type of parameters?
I have a set of functions to be called e.g.: void void_func();/* id = 0 */ void void_func1(int);/* id = 1 */[详细]
2023-04-03 21:36 分类:问答GCC warning on implicit casting of void* to another pointer type
As t开发者_JAVA百科he title says, is there a way to force GCC to warn me when I do something like this:[详细]
2023-03-29 01:08 分类:问答How do you convert void pointer to char pointer in C
Ok this has been become sooo confusing to me. I just don\'t know what is wrong with this assignment: void *pa; void *pb;[详细]
2023-03-28 09:59 分类:问答c: size of void*
I\'m a bit confused with a void* pointer in C. 开发者_JAVA百科Especially after reading this question: Is the sizeof(some pointer) always equal to four?, where one person says there is no guarantee tha[详细]
2023-03-25 18:29 分类:问答How is a void pointer dereferenced back to the original struct in C?
I am having trouble giving a struct value to a C interface for a queue that manages the queue as a linked list. It holds onto the data as void pointers to allow the interface to manage any data generi[详细]
2023-03-24 05:07 分类:问答