Mapping a function name

In VB there is a function VarPtr which will return the  address of a structure. I want to map this function to
another function with the name get_pointer().
So when I call get_pointer(ptr as any) it should call  VarPtr and return the correct address.Here ptr is the name of a structure. The problem I'm facing here is that a function defined in the VB can't take "any" data type as an argument. Do we have simple solution like using macro as in C.
Does anybody have an answer?
Who is Participating?
JiaHConnect With a Mentor Commented:
How about use the variant type?
If you specify a variant argument, there will be a conversion from actual arguments to formal ones, thus passing the values by value, and not by reference, disabling the ability to what Kamalhusain wants. ┬┐Am I very wrong?
kamalhusainAuthor Commented:
Vikiing has made a vaild point. This is the probelm I'm facing.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.