Solved

Help about Pointer of Function in VB (300 points)

Posted on 2001-07-30
5
146 Views
Last Modified: 2010-05-02
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
Comment
Question by:MGlobal
  • 3
  • 2
5 Comments
 
LVL 22

Expert Comment

by:CJ_S
ID: 6333446
VarPtr(variablename)

??

Regards,
CJ
0
 
LVL 22

Accepted Solution

by:
CJ_S earned 300 total points
ID: 6333447
Oh, hold on. You need the pointer to a function as a callback function. You do that using AddressOf .

AddressOf MyfunctionName

regards,
CJ
0
 
LVL 1

Author Comment

by:MGlobal
ID: 6333474
Dear CJ,

Thanks for your quick answer. I will try them.

MGlobal.
0
 
LVL 1

Author Comment

by:MGlobal
ID: 6333535
Dear CJ,

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

Best Regard,
MGlobal.
0
 
LVL 22

Expert Comment

by:CJ_S
ID: 6333565
Glad to be of service!

regards,
CJ
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
VBA to format 3 80
Using "ScreenUpdating" 6 45
message box in access 4 34
using web browser with BING 40 86
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now