>Take this code and save it as str.cs :
>
>using System;
>
>public class T
>{
>public string A(string s)
>{
>return s+" from C#";
>}
>}
>
>
>Take this code and save it as strmake.cmd:
>
>csc /t:library str.cs
>tlbexp str.dll /out:str.tlb
>regasm str.dll
>
>
>Copy str.dll and str.tlb into c:\winnt\system32. Take this code and save it as str.vbs:
>
> Set o = CreateObject("T")
> MsgBox o.A("Hello"), , "VBS test"
>
>
>If you run the .vbs, it runs fine. But in VFP7/SP1, if you just do a CreateObject(), you get "OLE error code 0x80131522: Unknown COM status code".
>
>What happened?
>
>Thanks.
Steve,
I don't know the answer but maybe UT magazine Aprill 2002 issue might help. There was an article there.
Cetin