>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
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