Information générale
Catégorie:
Codage, syntaxe et commandes
>>>>For example, the DLL has a Test() method that raises a test event. There should be a way that I can access that event from with VFP so that I can attach code to it. (Keep in mind that this is not done in a form, just raw code.)
>>>
>>>Do you mean you have some code in that event and it does not fire? If this is the case, try AutoYield=.F.
>>
>>Isn't AutoYield only for OCXs?
>
>It may well be the case.
>
>>But he wants to attach VFP code to the event, which is probably a Windows message. And this leads to the fact that he needs to create an OCX in VB. Am I right?
>
>Yes, however, there might be a way to do it but it may not worth it. What if the event maintain a property of that DLL and we have a VFP timer which will check for that property change to execute some VFP code and reset the property after?
Well, from one of his messages (the one that gives a code sample), it's pretty clear that he created, in fact, an OCX in VB. Which, is the same as an ActiveX DLL.
Vlad
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement