Help about Pointer of Function in VB (300 points)

Dear All,

I want to know how to transfer pointer of a function (written by VB) for a funtion in a dll (function in dll will call the function written by VB by its pointer). Can anyone of you help me?
Thank a lot.

MGlobal.
LVL 1
MGlobalAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
CJ_SConnect With a Mentor Commented:
Oh, hold on. You need the pointer to a function as a callback function. You do that using AddressOf .

AddressOf MyfunctionName

regards,
CJ
0
 
CJ_SCommented:
VarPtr(variablename)

??

Regards,
CJ
0
 
MGlobalAuthor Commented:
Dear CJ,

Thanks for your quick answer. I will try them.

MGlobal.
0
 
MGlobalAuthor Commented:
Dear CJ,

I have tested, your answer is very excellent.
Again, thanks a lot.

Best Regard,
MGlobal.
0
 
CJ_SCommented:
Glad to be of service!

regards,
CJ
0
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.