>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