When a function expects void pointer, can I pass in a pointer to an object to it. I am using a queue API(don't have the code). The Queue has the following functions.
Receive (void* pMsgBuffer, int size);
Send (const void* pMsgBuffer,int size)
If I want to pass in 'tc' below and then at the receiving side copy to tc2. Can I do these??
TestClass *tc = new TestClass( );