Hi!
If COM object DLL is multi-threading, you require to use special run-time VFP DLL library for multi-threaded DLL. For VFP 6 it is probably already installed on that machine, VFP7 require another (newer) library.
>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
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.