3a8 Subj : Re: type of void* To : borland.public.cpp.borlandcpp From : Vicente Flich Date : Sat Nov 22 2003 10:04 am You do not can know the original type of *object, but you can overhead the function MyFunc() like this: void MyFunc(void* object); void MyFunc(MyClass *object); On Fri, 21 Nov 2003 15:11:01 -0500, "MarvinAvery" wrote: >Hi. > >I am using BC5.02 with RTTI on. > >I have a function and a class: > void MyFunc (void* object); > class MyClass; > >In the function, MyFunc, is there a way of testing if "object" points to an >instance of MyClass? I tried > down_cast(object) >and got a compile time error. I tried typeid but that didn't work either. In >fact, is there any way of finding out what "object" does point to? > >TIA > >--------------------------------- >Marvin Avery >marvin.avery@hrdc-drhc.gc.ca > . 0