Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel Automation Problems
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00861104
Message ID:
00861133
Views:
27
Thanks Terry.

I'd looked at that example and modeled my project after it fairly closely. But, your advice made me compare my code -vs- the sample.

The only difference was that in my code I had some properties defined for my class (the example had no properties, just methods). No big deal, right? WRONG!

The first property that I defined looked something like this:
cIniStr = FileToStr("myInfo.ini").

From there on, I parsed out the values of each line and put them into their appropriate properties. This worked completely fine through VFP, but for some unknown reason, would cause Excel to only load the DLL the first time it ran, or by going through the list of hoops that I posted originally.

I'm not sure why, but using FileToStr() as a way of assigning a property in my Com Server caused Excel to act up.

I hope this helps someone else, because this was a real PITA to figure out.

Thanks again.

-Matt

Maybe an Excel Com expert will chime in with some enlightenment on why this would happen?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform