General information
Category:
COM/DCOM and 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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only