Hi!
I have a newbie question regarding void*. I am reposting this since I
am still not clear.
In native C++ you can have a function that takes a void* and you can
call that function with pointer to array or any other kind for that
matter. Here is an example
Foo(void*);
// You can later call this foo() as
short* shbuf = new buf[100];
foo(shbuf);
long lx = 1;
foo(&lx);
etc.
In MC++, is there a way to do this. I need a generic function that can
be used with value types or arrays of value types. I cannot use
Object* since Foo() will be called with value types or arrays of value
types most of the time.
Thanks,
D
James Curran - 17 Sep 2004 20:38 GMT
I have trouble imagining what goes on in such a function that could take
pointers to scalars & pointers to arrays with not additional
information.....
Have you considered two separate functions?

Signature
Truth,
James Curran
Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com
(note new day job!)
> Hi!
>
[quoted text clipped - 24 lines]
> Thanks,
> D