Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 158
  • Last Modified:

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.
0
MGlobal
Asked:
MGlobal
  • 3
  • 2
1 Solution
 
CJ_SCommented:
VarPtr(variablename)

??

Regards,
CJ
0
 
CJ_SCommented:
Oh, hold on. You need the pointer to a function as a callback function. You do that using AddressOf .

AddressOf MyfunctionName

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

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now