Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Callback
Message
De
25/09/2003 13:56:00
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00832147
Message ID:
00832390
Vues:
26
J'aime (1)
>>Hi,
>>
>>I am in the process of finishing a global Callback capability for vfp.
>>It seems to behave well with a thermometer display
>>
>>Q1: Is there any interest to have it available in the downloads ?
>>
>>Q2: any examples where it would be useful ?
>>
>>Q3: Anyone anything to add/suggest ?
>>
>>Not my top priority but maybe nice to have
>
>Hi Gregory,
>
>A generic mechanism allowing VFP to make use of callback functions would be great to have. I've often wondered why no one has done this before. It would close one of the most frequently cited holes in VFP's ability to be fully integrated into the Windows API environment.
>
>I don't have any particularly urgent examples to offer at the moment, but I recall that such fundamental capabilities as process and window enumeration are hindered without callbacks. Eventually, I'm sure I'll run into a situation where the inability to use callback functions from VFP becomes a real pain, and I dread having to mess with an alternative development environment just to create a silly little wrapper function. If I must employ another language than VFP, let it be for a better reason than this.
>
>In short, please go for it!
>
>Mike

Mike,

I've got it working with
- CopyFileEx() where the Callback updates a thermometer (vfp class)
- EnumResourceTypes() where the callback just displays the types
- EnumChildWindows() where the Callback in vfp calls GetWindowText() and displays the text

I'll be putting it in the downloads next week or so.

Currently the callback supports Integer, Large_integer and null terminated strings. I suppose I'll have to add a couple as time goes by.

The only drawback (as far) is that it needs msvcr70.dll either in the windows directory or in the vfp startup directory. I haven't found a way around that (doubt I will) If someone does, let me know. Silly, the fll is 8k and msvcr70.dll is 336k
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform