Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a VFP9 COM to be used in VFP8 code
Message
 
 
À
10/08/2007 11:07:41
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01247363
Message ID:
01247392
Vues:
34
>>>This is an exchange I had with someone recently and wanted to know if someone could verify that the assertions sound reasonable. Any additional insight/references welcome as well. There are a couple gaps where there was proprietary information, but the gist of it is here. Thanks!
>>
>>Some of them are not correct. From what I understand you have a chance to compile it some way. If it's so why would you ever want to create a COM and deal with COM problems. Creating a COM and using it as a 'server' looks appealing but it's also a trouble IMHO. Instead create your objects as needed using those libraries. In code the difference looks like:
>>
>>*COM
>>oMyObject = createobject('myCOMDLL.myCOMClass')
>>
>>*non COM
>>oMyObject = newObject('myClass','myClassLib.prg') && or myClasslib.vcx
>>
>>I would go with the latter (but that's me).
>>Cetin
>
>So, I don't need a COM, just a new object in my VFP8 code to reference the VFP9 class?

Nope, it would not work if the class is designed for VFP9 only as documentation states.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform