This looks like a COM API (wrapped using the tools available from .NET to do this wrapping automatically, e.g. tlbimp.exe). These create an interface called X and a class called XClass, and C# has some (undocumented?) hack to call "new XClass()" when you write "new X()". This also shows up in the Automation samples in the F# distribution.

So, short answer: try "new SpVoiceClass()". Using a browser tool such as Reflector on the compiled IL code of the C#sample may also help you spot this.

Cheers!

Don

By on 3/26/2007 12:18 PM ()

Don,

Thanks for the quick response. It works!!

Regards

Chris

By on 3/26/2007 12:22 PM ()

Great! BTW the instant email notifications are great (hence the quick response time) - I'd encourage everyone to subscribe to them as they make the forums really work very well. Go to [link:cs.hubfs.net] and use "Forum Subscriptions" in th top right corner.

By on 3/26/2007 12:31 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper