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.dllCopy 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".