Information générale
Catégorie:
COM/DCOM et OLE Automation
>>>>>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.
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