Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Start directory
Message
From
18/04/2001 14:37:12
 
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00496797
Message ID:
00496889
Views:
7
>>>>>What's the command for getting the start directory of a COM object? In other words, return the path to where it lives.
>>>>
>>>>
>>>>Hmm, I haven't checked, but does SYS(16,1) work?
>>>
>>>Nope. Believe it or not, HOME() is the one that does the trick.
>>
>>Wow, don't think I would have guessed that! (unless you've installed your .DLL in the system folder, or at least in the same place the VFP runtime is installed)
>
>Here's another one that's got me stumped. My com object runs fine when I create it from the command window. When I issue clear all and try to run create the object again I get the message, "Ole error code 0x800403111: ClassFactory cannot supply requested class." The only way around it is to shut down the com server in the Component Services module and re-run. If you know a way around this one, I'd sure like to know about it.

I found it. In the destroy event I issued close data all. Seems to me that the databases would be closed when the object is cleared from memory, but it seems this isn't the case.
Previous
Reply
Map
View

Click here to load this message in the networking platform