Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a VFP component with MTS
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00173501
Message ID:
00174727
Views:
19
>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!
Previous
Reply
Map
View

Click here to load this message in the networking platform