Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a VFP component with MTS
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00173501
Message ID:
00174727
Vues:
21
>I get the same results. So i tried moving the code to a custom method and calling it from there and it worked. Not sure if this helps
>
>>I have created an Active-X DLL in VFP and I want to use CreateInstance in the object context. I can create the MTS Context object just fine, but calling GetObjectContext() returns .NULL.
>>
>>I created a MTS package with my DLL and indicated that it "Support Transactions". In the VFP object's Init event, I have the following code.
>>
>>Thanks for your help!

Yes, this worked! GetObjectContext() now returns the context, and I can now call CreateInstance. I guess this makes sense, since the object needs to be created for MTS to return a context for it. The object is not created until the Init event finishes. Now if I can only figure out why my VFP DLL locks up, I will be in business.

Thanks again!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform