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