Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP AddressOf?
Message
From
09/04/2003 10:31:04
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00775473
Message ID:
00775479
Views:
13
If I wrap this inside a VB program, do you have recommendation as to how to implement this, meaning VB EXE or VB DLL?

>Ramil,
>
>VFP doesn't have built-in support for callback functions. You can read more about that at http://fox.wikis.com/wc.dll?Wiki~CallbacksAndEvents~WIN_COM_DNA.
>
>>Hi all,
>>
>>What is the VFP function that emulates the VB AddressOf when passing values to Win32 API. This is passing to the DLL a pointer to the callback routine.
>>
>>example:
>>declare long CreateEnv in Win32APIDLL
>>declare long SetCallbackSolver in Win32APIDLL (long pEnv, long pcbf, double @ pUserData)
>>pEnv=CreateEnv()
>>nError=0
>>dBestObj=1E+30
>>nError=SetCallbackSolver(pEnv, AddressOf MySolverCallback, dBestObj) <-- here
>>
>>Or is this not possible with VFP8?
ramil
~~ learning to stand still
Previous
Reply
Map
View

Click here to load this message in the networking platform