Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 6.0 and COM+
Message
De
29/06/2001 16:10:05
 
 
À
29/06/2001 15:53:47
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00525383
Message ID:
00525391
Vues:
18
>I have an MTS application currently running on NT 4 and I am planning to switch it to Win 2000. Windows 2000 using Component Services instead of MTS.
>
>What is the code to create an instance of a Component
>
>When I use
>
>a = createobj('mtxas.appserver.1')
>b = a.getobjectcontext()
>ar = b.createinstance('{dll}')
>
>It does not work. (b) is not an object it says.
>
>Can anyone give me a hand.
>
>Mike Bedry
>mike.bedry@leviathan-systems.com

Are you typing these from the command window?

The objectcontext() call will return an object only when the program is running within the MTS environment. For testing purposes you can write values to text files as illustrated in the west-wind "Using MTS with VFP" article. www.west-wind.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform