Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Method '~' of object '~' failed
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Method '~' of object '~' failed
Miscellaneous
Thread ID:
00555671
Message ID:
00555671
Views:
56
When I call my VFP7 COM component from my VB6 COM component, I receive the error Method '~' of object '~' failed. All components are part of a MTS package on Windows 2000. From within the same VF6 COM component, I can another VB6 COM component with no problems:

' COM_REGISTRY is a VB6 object. This works.
Set loComRegistry = GetObjectContext.CreateInstance(COM_REGISTRY)

' COM_DAL is VFP7 object. This generates the error.
Set loComDal = GetObjectContext.CreateInstance(COM_DAL)

I placed some debug code in the VFP7 component's init event, and it never executes. So, it looks like it never tries to create the VFP object.

I have used prior versions of VFP with no problems. This is my first VFP7 COM object. Maybe, I am missing something. Oh, I should mention that this works fine on my workstation. The problem arises when I export the MTS package from my machine, import it on the remote server, and access the DLLs on the remote server. I have installed the VFP7 and C++7 run-time libraries and MDAC 2.6 SP1 on the remote server.

Thanks in advance for help!
Tim
Next
Reply
Map
View

Click here to load this message in the networking platform