I'm writing an MFC ActiveX control with eVC++ 3.0 (very similar to VC++ 6.0). I want one of the exposed methods to return a void* pointer, but it is not in the list of return types. M$'s CListBox has a method GetItemDataPtr() that returns void* -- anyone know how to do that? I tried just changing the return type from standard BSTR to void* but that didn't work (the ActiveX control compiled without error, but when I added the control to a project, the .h file that was produced has a comment

// method 'SetItemDataPtr' not emitted because of invalid return type or parameter type