Information générale
Catégorie:
COM/DCOM et OLE Automation
I started thinking about this some more & I think I found out why it was having the problem. Why it was intermittent is a problem for another beer.
The FileToStr("MyIni.ini") worked fine when the object was instantiated from VFP because I was running it from that directory - der! When I ran it as a Com Server from Excel who knows where the default dir was. A good question is why it worked after first registering it and then not again.
I changed the reading in of the INI to this:
cIniStr = FILETOSTR((ADDBS(JUSTPATH(This.ClassLibrary)) + 'MyIni.ini'))
Works like a charm every time now from Excel.
Hopefully this thread will help someone else later - or me next week when I've forgotten the whole mess <g>.
Thanks again.
-Matt
Précédent
Suivant
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